diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/base/core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c index 4e6cce8e6d35..a7cedd8cefe5 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c | |||
@@ -260,6 +260,8 @@ int device_add(struct device *dev) | |||
260 | /* notify platform of device entry */ | 260 | /* notify platform of device entry */ |
261 | if (platform_notify) | 261 | if (platform_notify) |
262 | platform_notify(dev); | 262 | platform_notify(dev); |
263 | |||
264 | kobject_hotplug(&dev->kobj, KOBJ_ADD); | ||
263 | Done: | 265 | Done: |
264 | put_device(dev); | 266 | put_device(dev); |
265 | return error; | 267 | return error; |
@@ -349,6 +351,7 @@ void device_del(struct device * dev) | |||
349 | platform_notify_remove(dev); | 351 | platform_notify_remove(dev); |
350 | bus_remove_device(dev); | 352 | bus_remove_device(dev); |
351 | device_pm_remove(dev); | 353 | device_pm_remove(dev); |
354 | kobject_hotplug(&dev->kobj, KOBJ_REMOVE); | ||
352 | kobject_del(&dev->kobj); | 355 | kobject_del(&dev->kobj); |
353 | if (parent) | 356 | if (parent) |
354 | put_device(parent); | 357 | put_device(parent); |