clk: tegra: Add missing stubs for the case of !CONFIG_PM_SLEEP
authorDmitry Osipenko <digetx@gmail.com>
Tue, 15 Oct 2019 17:00:06 +0000 (20:00 +0300)
committerThierry Reding <treding@nvidia.com>
Mon, 11 Nov 2019 13:53:05 +0000 (14:53 +0100)
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>
Signed-off-by: Thierry Reding <treding@nvidia.com>
include/linux/clk/tegra.h

index 6a7cbc3cfadc09b4bdd31db1789eed4a4647e75e..2b1b352400749dff92a4430c2970cef41517ffab 100644 (file)
@@ -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);