From: Rafael J. Wysocki Date: Tue, 11 Mar 2008 23:59:38 +0000 (+0100) Subject: Driver core: Call device_pm_add() after bus_add_device() in device_add() X-Git-Tag: v2.6.26-rc1~1126^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57eee3d23e8833ca18708b374c648235691942ba;p=pandora-kernel.git Driver core: Call device_pm_add() after bus_add_device() in device_add() Include dpm_sysfs_add() into device_pm_add(), in analogy with device_pm_remove(), and modify device_add() to call the latter after bus_add_device(), to avoid situations in which the PM core may attempt to suspend a device the registration of which has not been successful. Signed-off-by: Rafael J. Wysocki Acked-by: Pavel Machek Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed