Skip to content

Commit 45e3ec3

Browse files
Stephen WarrenMike Turquette
authored andcommitted
clk: tegra: fix ifdef for tegra_periph_reset_assert inline
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>
1 parent 7064f6b commit 45e3ec3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/linux/clk/tegra.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ static inline void tegra_cpu_clock_resume(void)
120120
}
121121
#endif
122122

123-
#ifdef ARCH_TEGRA
123+
#ifdef CONFIG_ARCH_TEGRA
124124
void tegra_periph_reset_deassert(struct clk *c);
125125
void tegra_periph_reset_assert(struct clk *c);
126126
#else

0 commit comments

Comments
 (0)