summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/pm-debug.c
diff options
context:
space:
mode:
authorAndreas Kemnade <andreas@kemnade.info>2020-09-11 18:12:09 +0200
committerTony Lindgren <tony@atomide.com>2020-09-24 14:26:20 +0300
commitfb2c599f056640d289b2147fbe6d9eaee689f1b2 (patch)
treeb842bba43be0e18776892003bc26ae086133682c /arch/arm/mach-omap2/pm-debug.c
parent501e69b028a47e20cb0d842e267fc5aa5e5230aa (diff)
downloadlinux-fb2c599f056640d289b2147fbe6d9eaee689f1b2.tar.bz2
ARM: omap3: enable off mode automatically
Enabling off mode was only reachable deeply hidden in the debugfs. As powersaving is an important feature, move the option out of its shady place. The debugfs file can still be used to override the default. Use the presence of a device compatible to ti,twl4030-idle or ti,twl4030-idle-osc-off as an indicator that the board is wired correctly for off mode. Signed-off-by: Andreas Kemnade <andreas@kemnade.info> [tony@atomide.com: updated to fix a checkpatch warning] Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/pm-debug.c')
-rw-r--r--arch/arm/mach-omap2/pm-debug.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/pm-debug.c b/arch/arm/mach-omap2/pm-debug.c
index fceb1e525d26..919d35d5b325 100644
--- a/arch/arm/mach-omap2/pm-debug.c
+++ b/arch/arm/mach-omap2/pm-debug.c
@@ -34,8 +34,6 @@
#include "prm2xxx_3xxx.h"
#include "pm.h"
-u32 enable_off_mode;
-
#ifdef CONFIG_DEBUG_FS
#include <linux/debugfs.h>
#include <linux/seq_file.h>