linux/arch/arm/mach-omap1
Paul Walmsley 7239d309b5 ARM: OMAP1: PM: fix some build warnings on 1510-only Kconfigs
Building an OMAP1510-only Kconfig generates the following warnings:

arch/arm/mach-omap1/pm.c: In function ¡omap1_pm_idle¢:
arch/arm/mach-omap1/pm.c:123:2: warning: #warning Enable 32kHz OS timer in order to allow sleep states in idle [-Wcpp]
 #warning Enable 32kHz OS timer in order to allow sleep states in idle
  ^
arch/arm/mach-omap1/pm.c: At top level:
arch/arm/mach-omap1/pm.c:76:23: warning: ¡enable_dyn_sleep¢ defined but not used [-Wunused-variable]
 static unsigned short enable_dyn_sleep = 0;
                       ^

These are not so easy to fix in an obviously correct fashion, since I
don't have these devices up and running in my testbed.  So, use
arch/arm/plat-omap/Kconfig and the existing pm.c source as a guide,
and posit that deep power saving states are only supported on OMAP16xx
chips with kernels built with both CONFIG_OMAP_DM_TIMER=y and
CONFIG_OMAP_32K_TIMER=y.

While here, clean up a few printk()s and unnecessary #ifdefs.

This second version of the patch incorporates several suggestions from
Jon Hunter <jgchunter@gmail.com>.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Jon Hunter <jonathanh@nvidia.com>
Cc: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: Tuukka Tikkanen <tuukka.tikkanen@linaro.org>
Cc: Kevin Hilman <khilman@deeprootsystems.com>
Cc: Tony Lindgren <tony@atomide.com>
Cc: Russell King <linux@arm.linux.org.uk>
Cc: linux-omap@vger.kernel.org
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Acked-by: Jon Hunter <jgchunter@gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
2015-03-16 16:09:23 -07:00
..
include/mach ARM: 8271/1: omap1: Migrate debug_ll macros to use 8250.S 2015-01-21 15:49:39 +00:00
ams-delta-fiq-handler.S
ams-delta-fiq.c
board-ams-delta.c
board-fsample.c
board-generic.c
board-h2-mmc.c
board-h2.c
board-h2.h
board-h3-mmc.c
board-h3.c
board-h3.h
board-htcherald.c
board-innovator.c
board-nand.c
board-nokia770.c
board-osk.c
board-palmte.c
board-palmtt.c
board-palmz71.c
board-perseus2.c
board-sx1-mmc.c
board-sx1.c
board-voiceblue.c
clock_data.c
clock.c
clock.h
common.h
devices.c
dma.c
fb.c
flash.c
fpga.c
fpga.h
gpio7xx.c
gpio15xx.c
gpio16xx.c
i2c.c
id.c
io.c
iomap.h
irq.c ARM: OMAP1: irq.c: Remove unused function 2015-01-07 09:53:51 -08:00
Kconfig
lcd_dma.c
Makefile
Makefile.boot
mcbsp.c
mmc.h
mux.c
ocpi.c
opp_data.c
opp.h
pm_bus.c
pm.c ARM: OMAP1: PM: fix some build warnings on 1510-only Kconfigs 2015-03-16 16:09:23 -07:00
pm.h
reset.c
serial.c
sleep.S
soc.h
sram-init.c
sram.h
sram.S
time.c
timer32k.c ARM: OMAP1: timer32k.c: Remove unused function 2015-01-07 09:53:51 -08:00
timer.c
usb.c