ACPI / PM: Fix unused function warnings for CONFIG_PM_SLEEP
authorRafael J. Wysocki <rjw@sisk.pl>
Thu, 9 Aug 2012 21:00:02 +0000 (23:00 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Fri, 10 Aug 2012 11:35:32 +0000 (13:35 +0200)
commit9069240480e24a2d6ce23404c9ad6cabf59b7258
tree6dc30815db7ff040a91844f57848f7a0a1770d2b
parent300d3739e873d50d4c6e3656f89007a217fb1d29
ACPI / PM: Fix unused function warnings for CONFIG_PM_SLEEP

According to compiler warnings, several suspend/resume functions
in ACPI drivers are not used for CONFIG_PM_SLEEP unset, so add
#ifdefs to prevent them from being built in that case.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/acpi/ac.c
drivers/acpi/battery.c
drivers/acpi/button.c
drivers/acpi/fan.c
drivers/acpi/power.c
drivers/acpi/sbs.c
drivers/acpi/thermal.c