Skip to content

Commit

Permalink
clk: tegra: provide tegra_periph_reset_assert alternative
Browse files Browse the repository at this point in the history
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]
  • Loading branch information
Arnd Bergmann authored and Mike Turquette committed Jun 22, 2013
1 parent 82ba93b commit 7064f6b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/linux/clk/tegra.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_ */

0 comments on commit 7064f6b

Please sign in to comment.