]> git.baikalelectronics.ru Git - kernel.git/commit
OMAP: PM: Fix build when CONFIG_PM_DEBUG isn't set
authorLoïc Minier <loic.minier@linaro.org>
Mon, 27 Sep 2010 21:04:20 +0000 (23:04 +0200)
committerKevin Hilman <khilman@deeprootsystems.com>
Fri, 1 Oct 2010 20:50:34 +0000 (13:50 -0700)
commitc0cd961712565620fe324e28c9aadf279254e00c
tree932d17dcbf65329dae6982e16956fdeef7ce7bb2
parent4302ba9f2fad37244f8c0ed5663b8a3670ad85d4
OMAP: PM: Fix build when CONFIG_PM_DEBUG isn't set

Since 8e618739c2af12eb54072f77e8d52863755ecbf2 the references to
enable_off_mode and sleep_while_idle can't be resolved when CONFIG_PM_DEBUG
isn't set:
arch/arm/mach-omap2/built-in.o: In function `omap_uart_restore_context':
arch/arm/mach-omap2/serial.c:253: undefined reference to `enable_off_mode'
arch/arm/mach-omap2/built-in.o: In function `omap3_can_sleep':
arch/arm/mach-omap2/pm34xx.c:479: undefined reference to `sleep_while_idle'

Simply #define these in pm.h just like omap2_pm_debug.

Signed-off-by: Loïc Minier <loic.minier@linaro.org>
[khilman: moved down into existing #ifdef section]
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-omap2/pm.h