diff options
author | Scott Williams <scwilliams@nvidia.com> | 2011-07-29 16:26:10 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2011-11-30 21:46:59 -0800 |
commit | 01ae1c4415be7029183ea16cc8ad93bd7c447274 (patch) | |
tree | 32b3c1b23c82236bb2434819cf57a07667fd4eb4 /arch/arm/mach-tegra/pm-t3.c | |
parent | d0883fc0c9fac21322141df265019a121e79579d (diff) |
ARM: tegra: power: cluster control requires CONFIG_PM_SLEEP
Change-Id: I6d395efbd8a83d867e6ac645e232ff95538b7f91
Signed-off-by: Scott Williams <scwilliams@nvidia.com>
Signed-off-by: Dan Willemsen <dwillemsen@nvidia.com>
Rebase-Id: R08fc23af26e1e1b9daf3de235fdd7df8419013de
Diffstat (limited to 'arch/arm/mach-tegra/pm-t3.c')
-rw-r--r-- | arch/arm/mach-tegra/pm-t3.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/pm-t3.c b/arch/arm/mach-tegra/pm-t3.c index 423b1e3d8cdb..93b5e0081e8b 100644 --- a/arch/arm/mach-tegra/pm-t3.c +++ b/arch/arm/mach-tegra/pm-t3.c @@ -274,6 +274,7 @@ void tegra_cluster_switch_epilog(unsigned int flags) int tegra_cluster_control(unsigned int us, unsigned int flags) { +#ifdef CONFIG_PM_SLEEP unsigned int target_cluster = flags & TEGRA_POWER_CLUSTER_MASK; unsigned int current_cluster = is_lp_cluster() ? TEGRA_POWER_CLUSTER_LP @@ -325,6 +326,9 @@ int tegra_cluster_control(unsigned int us, unsigned int flags) DEBUG_CLUSTER(("%s: %s\r\n", __func__, is_lp_cluster() ? "LP" : "G")); return 0; +#else + return -ENODEV; +#endif } static u32 mc_reserved_rsv; |