提交 45e3ec37 编写于 作者: S Stephen Warren 提交者: Mike Turquette

clk: tegra: fix ifdef for tegra_periph_reset_assert inline

Commit 7064f6bd "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: NOlof Johansson <olof@lixom.net>
Signed-off-by: NStephen Warren <swarren@nvidia.com>
Tested-by: NPaul Walmsley <pwalmsley@nvidia.com>
Signed-off-by: NMike Turquette <mturquette@linaro.org>
上级 7064f6bd
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册