driver core: Remove dpm_sysfs_remove() from error path of device_add()
commit135dee0cd0eb2638fab899b428e51f00e8c046a8
authorRafael J. Wysocki <rjw@sisk.pl>
Mon, 3 Mar 2008 22:46:51 +0000 (3 23:46 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 4 Mar 2008 22:47:05 +0000 (4 14:47 -0800)
treef45d0021383e4fd52cfbc4c2ac879c62fea7724f
parent1b3cbec1dcb6747b587b40335f5de1d9e035063c
driver core: Remove dpm_sysfs_remove() from error path of device_add()

Since device_pm_remove(dev) calls dpm_sysfs_remove(dev), it's
incorrect to call the latter after the former in the device_add()
error path.

Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/core.c