Skip to content

Commit 5699d16

Browse files
digetxthierryreding
authored andcommitted
clk: tegra: Add missing stubs for the case of !CONFIG_PM_SLEEP
The new CPUIDLE driver uses the Tegra's CLK API and that driver won't strictly depend on CONFIG_PM_SLEEP, hence add the required stubs in order to allow compiling of the new driver with the CONFIG_PM_SLEEP=n. Signed-off-by: Dmitry Osipenko <[email protected]> Signed-off-by: Thierry Reding <[email protected]>
1 parent 204ce75 commit 5699d16

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

include/linux/clk/tegra.h

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,19 @@ static inline void tegra_cpu_clock_resume(void)
108108

109109
tegra_cpu_car_ops->resume();
110110
}
111+
#else
112+
static inline bool tegra_cpu_rail_off_ready(void)
113+
{
114+
return false;
115+
}
116+
117+
static inline void tegra_cpu_clock_suspend(void)
118+
{
119+
}
120+
121+
static inline void tegra_cpu_clock_resume(void)
122+
{
123+
}
111124
#endif
112125

113126
extern void tegra210_xusb_pll_hw_control_enable(void);

0 commit comments

Comments
 (0)