PM / Domains: Fix build for CONFIG_PM_RUNTIME unset
authorRafael J. Wysocki <rjw@sisk.pl>
Sun, 14 Aug 2011 11:34:31 +0000 (13:34 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Sun, 14 Aug 2011 11:34:31 +0000 (13:34 +0200)
commit17f2ae7f677f023997e02fd2ebabd90ea2a0390d
tree9f333057d8771adc432687417c2bfe28164f1e48
parent91d85ea6786107aa2837bef3e957165ad7c8b823
PM / Domains: Fix build for CONFIG_PM_RUNTIME unset

Function genpd_queue_power_off_work() is not defined for
CONFIG_PM_RUNTIME, so pm_genpd_poweroff_unused() causes a build
error to happen in that case.  Fix the problem by making
pm_genpd_poweroff_unused() depend on CONFIG_PM_RUNTIME too.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/base/power/domain.c
include/linux/pm_domain.h
kernel/power/Kconfig