summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Williams <scwilliams@nvidia.com>2011-05-17 13:40:27 -0700
committerVarun Colbert <vcolbert@nvidia.com>2011-05-18 11:47:27 -0700
commitdbbefa6150f6ae1de38b3e41f33ac2f8b311c3a2 (patch)
tree7bff6a11b0c0c66abd784d7c884fd0db2a8ffccc
parent74328aae69acd3919025d69bc99ab763e6e0aa23 (diff)
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 <scwilliams@nvidia.com> Reviewed-by: Karan Jhavar <kjhavar@nvidia.com> Reviewed-by: Aleksandr Frid <afrid@nvidia.com> Reviewed-by: Scott Williams <scwilliams@nvidia.com> Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
-rw-r--r--arch/arm/mach-tegra/suspend.c5
1 files 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;
}