diff mbox series

[v6,09/18] clk: tegra: Add missing stubs for the case of !CONFIG_PM_SLEEP

Message ID 20191015170015.1135-10-digetx@gmail.com (mailing list archive)
State Not Applicable, archived
Headers show
Series Consolidate and improve NVIDIA Tegra CPUIDLE driver(s) | expand

Commit Message

Dmitry Osipenko Oct. 15, 2019, 5 p.m. UTC
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 <digetx@gmail.com>
---
 include/linux/clk/tegra.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)

Comments

Thierry Reding Oct. 29, 2019, 1:19 p.m. UTC | #1
On Tue, Oct 15, 2019 at 08:00:06PM +0300, Dmitry Osipenko wrote:
> 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 <digetx@gmail.com>
> ---
>  include/linux/clk/tegra.h | 13 +++++++++++++
>  1 file changed, 13 insertions(+)

Applied to for-5.5/clk, thanks.

Thierry
diff mbox series

Patch

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);