summaryrefslogtreecommitdiffstats
path: root/include/linux/device.h
diff options
context:
space:
mode:
authorAlan Stern2008-08-07 19:06:12 +0200
committerGreg Kroah-Hartman2008-08-21 19:15:36 +0200
commit3b98aeaf3a75f544dc945694f4fcf6e1c4bab89d (patch)
treebebaa8c3353ba9e7d5142dc73c767dc030bca7e3 /include/linux/device.h
parentdriver model: anti-oopsing medicine (diff)
downloadkernel-qcow2-linux-3b98aeaf3a75f544dc945694f4fcf6e1c4bab89d.tar.gz
kernel-qcow2-linux-3b98aeaf3a75f544dc945694f4fcf6e1c4bab89d.tar.xz
kernel-qcow2-linux-3b98aeaf3a75f544dc945694f4fcf6e1c4bab89d.zip
PM: don't skip device PM init when CONFIG_PM_SLEEP isn't set and CONFIG_PM is set
This patch (as1124) fixes a couple of bugs in the PM core. The new dev->power.status field should be initialized regardless of whether CONFIG_PM_SLEEP is enabled, and similarly dpm_sysfs_add() should be called whenever CONFIG_PM is enabled. The patch separates out the call to dpm_sysfs_add() from the call to device_pm_add(). As a result device_pm_add() can no longer return an error, so its return type is changed to void. Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Tested-by: Romit Dasgupta <romit@ti.com> Acked-by: Rafael J. Wysocki <rjw@sisk.pl> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/device.h')
0 files changed, 0 insertions, 0 deletions