From fb2c599f056640d289b2147fbe6d9eaee689f1b2 Mon Sep 17 00:00:00 2001 From: Andreas Kemnade Date: Fri, 11 Sep 2020 18:12:09 +0200 Subject: 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 [tony@atomide.com: updated to fix a checkpatch warning] Signed-off-by: Tony Lindgren --- arch/arm/mach-omap2/pm-debug.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'arch/arm/mach-omap2/pm-debug.c') 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 #include -- cgit