From 5bb9118c8bd3d70eae6a33a04230c1b69d51d427 Mon Sep 17 00:00:00 2001 From: Scott Williams Date: Wed, 17 Aug 2011 11:49:57 -0700 Subject: ARM: tegra: Fix build error when CONFIG_PM_SLEEP is not selected Change-Id: I65e18395eef3a36f6dd537d64d98ab970f166460 Signed-off-by: Scott Williams Reviewed-on: http://git-master/r/47590 Reviewed-by: Daniel Willemsen Rebase-Id: R2643d7665780442e71444999f21d96a508c7a062 --- arch/arm/mach-tegra/cpuidle.h | 4 ++-- 1 file 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 -- cgit v1.2.3