[BEAGLE] Fix build failure in pm34xx.c
authorNamhyung Kim <namhyung@gmail.com>
Mon, 1 Nov 2010 04:07:52 +0000 (12:07 +0800)
committerJim Huang <jserv@0xlab.org>
Mon, 1 Nov 2010 04:07:52 +0000 (12:07 +0800)
commitd4f5a362c0065a908273f99c4e86f98ca3254cb5
treeaa3b6b577b8aa3d1112229d8034d196dfaf4e1bc
parenta43974bd3620d366947a6057129936d3c6778fa8
[BEAGLE] Fix build failure in pm34xx.c

omap_wdt_suspend/resume() are compiled only when OMAP_WATCHDOG is
defined so calling them in omap_sram_idle() breaks build as
followings. Add #ifdefs to workaround this.

 LD      .tmp_vmlinux1
arch/arm/mach-omap2/built-in.o: In function `omap_sram_idle':
arch/arm/mach-omap2/pm34xx.c:394: undefined reference to
`omap_wdt_suspend'
arch/arm/mach-omap2/pm34xx.c:579: undefined reference to
`omap_wdt_resume'
make[2]: *** [.tmp_vmlinux1] Error 1
make[1]: *** [sub-make] Error 2
make: *** [all] Error 2

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Jim Huang <jserv@0xlab.org>
arch/arm/mach-omap2/pm34xx.c