From dbbefa6150f6ae1de38b3e41f33ac2f8b311c3a2 Mon Sep 17 00:00:00 2001 From: Scott Williams Date: Tue, 17 May 2011 13:40:27 -0700 Subject: arm: tegra: power: Fix build break when CONFIG_PM disabled The code to select LP0/LP1 low-power mode via a sysfs node does not compile if CONFIG_PM is disabled. This fixes that error. Change-Id: If166759bd89f03335bca529cbe50a32420f802f6 Reviewed-on: http://git-master/r/31903 Tested-by: Scott Williams Reviewed-by: Karan Jhavar Reviewed-by: Aleksandr Frid Reviewed-by: Scott Williams Reviewed-by: Varun Wadekar --- arch/arm/mach-tegra/suspend.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-tegra/suspend.c b/arch/arm/mach-tegra/suspend.c index 80269b5f7c59..a67ad9e8ee99 100644 --- a/arch/arm/mach-tegra/suspend.c +++ b/arch/arm/mach-tegra/suspend.c @@ -1067,9 +1067,6 @@ void __init tegra_init_suspend(struct tegra_suspend_platform_data *plat) lp0_suspend_init(); suspend_set_ops(&tegra_suspend_ops); -#endif - - current_suspend_mode = plat->suspend_mode; /* Create /sys/power/suspend/type */ suspend_kobj = kobject_create_and_add("suspend", power_kobj); @@ -1079,6 +1076,8 @@ void __init tegra_init_suspend(struct tegra_suspend_platform_data *plat) pr_err("%s: sysfs_create_file suspend type failed!", \ __func__); } +#endif + current_suspend_mode = plat->suspend_mode; } -- cgit v1.2.3