OSDN Git Service

ARM: shmobile: Fix build problem in pm-sh7372.c for unusual .config
authorRafael J. Wysocki <rjw@sisk.pl>
Wed, 11 Jul 2012 20:55:12 +0000 (22:55 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Wed, 11 Jul 2012 20:55:12 +0000 (22:55 +0200)
commit911a472aca3dac8aede558760a85ae051966dda0
tree86053b2f49c457f136cbb70b0267ff9cca22d0fe
parenta1ee61b8f4b56e5e6ced16b83d5098e0f4238a45
ARM: shmobile: Fix build problem in pm-sh7372.c for unusual .config

If neither CONFIG_SUSPEND nor CONFIG_CPU_IDLE is set in the kernel
configuration file, build error occurs in
arch/arm/mach-shmobile/pm-sh7372.c.

Fix it by rearranging #ifdefs in that file to make the
definition of sh7372_suspend_init() depend only on
CONFIG_SUSPEND and the definition of sh7372_cpuidle_init()
depend only on CONFIG_CPU_IDLE.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Magnus Damm <damm@opensource.se>
arch/arm/mach-shmobile/pm-sh7372.c