Browse Source

clk: tegra: provide tegra_periph_reset_assert alternative

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]
Arnd Bergmann 12 năm trước cách đây
mục cha
commit
7064f6bd86
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      include/linux/clk/tegra.h

+ 5 - 0
include/linux/clk/tegra.h

@@ -120,8 +120,13 @@ static inline void tegra_cpu_clock_resume(void)
 }
 }
 #endif
 #endif
 
 
+#ifdef ARCH_TEGRA
 void tegra_periph_reset_deassert(struct clk *c);
 void tegra_periph_reset_deassert(struct clk *c);
 void tegra_periph_reset_assert(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);
 void tegra_clocks_apply_init_table(void);
 
 
 #endif /* __LINUX_CLK_TEGRA_H_ */
 #endif /* __LINUX_CLK_TEGRA_H_ */