PM / Sleep: Fix build warning in sysfs.c for CONFIG_PM_SLEEP unset
authorRafael J. Wysocki <rjw@sisk.pl>
Wed, 11 Jul 2012 20:42:58 +0000 (22:42 +0200)
committerRafael J. Wysocki <rjw@sisk.pl>
Thu, 12 Jul 2012 20:40:02 +0000 (22:40 +0200)
The power/async device sysfs attribute is only used if both
CONFIG_PM_ADVANCED_DEBUG and CONFIG_PM_SLEEP are set, but the code
implementing it doesn't depend on CONFIG_PM_SLEEP.  As a result, a
build warning appears if CONFIG_PM_ADVANCED_DEBUG is set and
CONFIG_PM_SLEEP is not set.

Fix it by adding a #ifdef CONFIG_PM_SLEEP around the code in
question.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>

No differences found