]> Pileus Git - ~andy/linux/commitdiff
clk: tegra: provide tegra_periph_reset_assert alternative
authorArnd Bergmann <arnd@arndb.de>
Fri, 21 Jun 2013 20:32:26 +0000 (22:32 +0200)
committerMike Turquette <mturquette@linaro.org>
Sat, 22 Jun 2013 18:03:09 +0000 (11:03 -0700)
We have some tegra device drivers that are written to be platform
independent but still use the tegra specific tegra_periph_reset_assert
function. In order to build and link them without errors,
this provides a static inline version of these functions that
does nothing when Tegra support is disabled.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
[mturquette@linaro.org: fixed up trivial merge issue]

include/linux/clk/tegra.h

index 3670a4f5402b3c516a6aab539f5bed7e7d457528..e3cc8721c30ec7572c0f17e079fdafb8fb1def40 100644 (file)
@@ -120,8 +120,13 @@ static inline void tegra_cpu_clock_resume(void)
 }
 #endif
 
+#ifdef ARCH_TEGRA
 void tegra_periph_reset_deassert(struct clk *c);
 void tegra_periph_reset_assert(struct clk *c);
+#else
+static inline void tegra_periph_reset_deassert(struct clk *c) {}
+static inline void tegra_periph_reset_assert(struct clk *c) {}
+#endif
 void tegra_clocks_apply_init_table(void);
 
 #endif /* __LINUX_CLK_TEGRA_H_ */