OMAP3: PM debug: fix build error when !CONFIG_DEBUG_FS
authorManjunatha GK <manjugk@ti.com>
Mon, 16 Nov 2009 14:46:52 +0000 (20:16 +0530)
committerKevin Hilman <khilman@deeprootsystems.com>
Thu, 21 Jan 2010 02:16:05 +0000 (18:16 -0800)
commitae559d8769531ab8895d241107a10fbe320b3b7f
tree3f9695b7c5873a8143cb18bae7872e0e1c28d6c9
parent8640425b265752a1b7bae041815872cda5b72a2f
OMAP3: PM debug: fix build error when !CONFIG_DEBUG_FS

The PM debug code fails to build on when CONFIG_DEBUG_FS is not
enabled.

Build error log:
arch/arm/mach-omap2/built-in.o: In function `omap_sram_idle':
arch/arm/mach-omap2/pm34xx.c:449: undefined reference to `pm_dbg_regset_save'
arch/arm/mach-omap2/pm34xx.c:460: undefined reference to `pm_dbg_regset_save'
arch/arm/mach-omap2/built-in.o: In function `configure_vc':
arch/arm/mach-omap2/pm34xx.c:1237: undefined reference to `pm_dbg_regset_init'
arch/arm/mach-omap2/pm34xx.c:1238: undefined reference to `pm_dbg_regset_init'
make: *** [.tmp_vmlinux1] Error 1

This patch fixes the above errors.

Kernel booting is tested on omap zoom2 and zoom3 boards.

Signed-off-by: Manjunatha GK <manjugk@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-omap2/pm-debug.c
arch/arm/mach-omap2/pm.h