Skip to content

Commit 7064f6b

Browse files
arndbMike Turquette
authored andcommitted
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]
1 parent 82ba93b commit 7064f6b

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎include/linux/clk/tegra.h‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,13 @@ static inline void tegra_cpu_clock_resume(void)
120120
}
121121
#endif
122122

123+
#ifdef ARCH_TEGRA
123124
void tegra_periph_reset_deassert(struct clk *c);
124125
void tegra_periph_reset_assert(struct clk *c);
126+
#else
127+
static inline void tegra_periph_reset_deassert(struct clk *c) {}
128+
static inline void tegra_periph_reset_assert(struct clk *c) {}
129+
#endif
125130
void tegra_clocks_apply_init_table(void);
126131

127132
#endif /* __LINUX_CLK_TEGRA_H_ */

0 commit comments

Comments
 (0)