summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/cpuidle.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-tegra/cpuidle.h')
-rw-r--r--arch/arm/mach-tegra/cpuidle.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-tegra/cpuidle.h b/arch/arm/mach-tegra/cpuidle.h
index d5e1e3e0152e..406031b26c2d 100644
--- a/arch/arm/mach-tegra/cpuidle.h
+++ b/arch/arm/mach-tegra/cpuidle.h
@@ -99,12 +99,12 @@ static inline int tegra_lp2_debug_show(struct seq_file *s, void *data)
#endif
}
#endif
+#endif /* CONFIG_PM_SLEEP */
-#ifdef CONFIG_CPU_IDLE
+#if defined(CONFIG_CPU_IDLE) && defined(CONFIG_PM_SLEEP)
void tegra_lp2_in_idle(bool enable);
#else
static inline void tegra_lp2_in_idle(bool enable) {}
#endif
-#endif /* CONFIG_PM_SLEEP */
#endif