clk: tegra: fix ifdef for tegra_periph_reset_assert inline
authorStephen Warren <swarren@nvidia.com>
Mon, 24 Jun 2013 19:05:56 +0000 (13:05 -0600)
committerMike Turquette <mturquette@linaro.org>
Mon, 24 Jun 2013 21:17:59 +0000 (14:17 -0700)
Commit 7064f6b "clk: tegra: provide tegra_periph_reset_assert
alternative" added ifdef'd static inline versions of some functions,
but tested ARCH_TEGRA rather than CONFIG_ARCH_TEGRA, thus disabling
these function in all cases. In some cases, this caused HW modules to
misbehave; for example, the Tegra I2C driver BUG()d during boot on
Seaboard.

Reported-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Tested-by: Paul Walmsley <pwalmsley@nvidia.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
include/linux/clk/tegra.h

index e3cc8721c30ec7572c0f17e079fdafb8fb1def40..23a0ceee831fc4ca2e5a93abfaa951ce3fff0048 100644 (file)
@@ -120,7 +120,7 @@ static inline void tegra_cpu_clock_resume(void)
 }
 #endif
 
-#ifdef ARCH_TEGRA
+#ifdef CONFIG_ARCH_TEGRA
 void tegra_periph_reset_deassert(struct clk *c);
 void tegra_periph_reset_assert(struct clk *c);
 #else
This page took 0.053356 seconds and 5 git commands to generate.