From: Dmitry Osipenko Date: Tue, 15 Oct 2019 17:00:06 +0000 (+0300) Subject: clk: tegra: Add missing stubs for the case of !CONFIG_PM_SLEEP X-Git-Tag: v5.5-rc1~99^2~1^3~1^2~1 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=5699d160550b1e480c920f8182bd4b73b8c9ae43;p=linux.git 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 Signed-off-by: Thierry Reding --- diff --git a/include/linux/clk/tegra.h b/include/linux/clk/tegra.h index 6a7cbc3cfadc..2b1b35240074 100644 --- a/include/linux/clk/tegra.h +++ b/include/linux/clk/tegra.h @@ -108,6 +108,19 @@ static inline void tegra_cpu_clock_resume(void) tegra_cpu_car_ops->resume(); } +#else +static inline bool tegra_cpu_rail_off_ready(void) +{ + return false; +} + +static inline void tegra_cpu_clock_suspend(void) +{ +} + +static inline void tegra_cpu_clock_resume(void) +{ +} #endif extern void tegra210_xusb_pll_hw_control_enable(void);