]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: OMAP2+: PM: fix wakeupgen warning when hotplug disabled
authorKevin Hilman <khilman@ti.com>
Tue, 6 Mar 2012 20:00:25 +0000 (12:00 -0800)
committerTony Lindgren <tony@atomide.com>
Tue, 6 Mar 2012 21:21:37 +0000 (13:21 -0800)
commit7d44081bfe504a40bef45e0c2d4641c0de9d2beb
tree083974cfd4e2de716355872e7de0fb806f5a6cae
parent6ff372609b6176e1b6e485c8b8c610036fb9d66a
ARM: OMAP2+: PM: fix wakeupgen warning when hotplug disabled

When CONFIG_HOTPLUG_CPU=n, there are unused functions in wakeupgen:

arch/arm/mach-omap2/omap-wakeupgen.c:181: warning: 'wakeupgen_irqmask_all' defined but not used

Fix this by moving all the functions only used when CONFIG_HOTPLUG_CPU=y
together and wrapping in an #ifdef.

No functional changes.

Reported-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/omap-wakeupgen.c