]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/base/core.c
Merge tag 'iwlwifi-next-for-john-2014-10-29' of git://git.kernel.org/pub/scm/linux...
[karo-tx-linux.git] / drivers / base / core.c
index 28b808c73e8ed14344472188794b94a14efea72f..14d162952c3bc21bdadf3966ccef0c7b2c43df91 100644 (file)
@@ -1211,6 +1211,9 @@ void device_del(struct device *dev)
         */
        if (platform_notify_remove)
                platform_notify_remove(dev);
+       if (dev->bus)
+               blocking_notifier_call_chain(&dev->bus->p->bus_notifier,
+                                            BUS_NOTIFY_REMOVED_DEVICE, dev);
        kobject_uevent(&dev->kobj, KOBJ_REMOVE);
        cleanup_device_parent(dev);
        kobject_del(&dev->kobj);