summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/cpuidle.h
diff options
context:
space:
mode:
authorScott Williams <scwilliams@nvidia.com>2011-08-17 11:49:57 -0700
committerDan Willemsen <dwillemsen@nvidia.com>2011-11-30 21:47:20 -0800
commit5bb9118c8bd3d70eae6a33a04230c1b69d51d427 (patch)
tree973cb3e8d02baf52fd849fcf858ad3a7fe0e7ebf /arch/arm/mach-tegra/cpuidle.h
parent8d41441083fe06c7ffdee0f6a58b8c0248e5c9ce (diff)
ARM: tegra: Fix build error when CONFIG_PM_SLEEP is not selected
Change-Id: I65e18395eef3a36f6dd537d64d98ab970f166460 Signed-off-by: Scott Williams <scwilliams@nvidia.com> Reviewed-on: http://git-master/r/47590 Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com> Rebase-Id: R2643d7665780442e71444999f21d96a508c7a062
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