aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/base/core.c')
-rw-r--r--drivers/base/core.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c
index beb351600675..414a480e10a3 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -769,7 +769,7 @@ int device_add(struct device *dev)
769 769
770 /* notify clients of device entry (new way) */ 770 /* notify clients of device entry (new way) */
771 if (dev->bus) 771 if (dev->bus)
772 blocking_notifier_call_chain(&dev->bus->bus_notifier, 772 blocking_notifier_call_chain(&dev->bus->p->bus_notifier,
773 BUS_NOTIFY_ADD_DEVICE, dev); 773 BUS_NOTIFY_ADD_DEVICE, dev);
774 774
775 error = device_create_file(dev, &uevent_attr); 775 error = device_create_file(dev, &uevent_attr);
@@ -820,7 +820,7 @@ int device_add(struct device *dev)
820 dpm_sysfs_remove(dev); 820 dpm_sysfs_remove(dev);
821 PMError: 821 PMError:
822 if (dev->bus) 822 if (dev->bus)
823 blocking_notifier_call_chain(&dev->bus->bus_notifier, 823 blocking_notifier_call_chain(&dev->bus->p->bus_notifier,
824 BUS_NOTIFY_DEL_DEVICE, dev); 824 BUS_NOTIFY_DEL_DEVICE, dev);
825 device_remove_attrs(dev); 825 device_remove_attrs(dev);
826 AttrsError: 826 AttrsError:
@@ -999,7 +999,7 @@ void device_del(struct device * dev)
999 if (platform_notify_remove) 999 if (platform_notify_remove)
1000 platform_notify_remove(dev); 1000 platform_notify_remove(dev);
1001 if (dev->bus) 1001 if (dev->bus)
1002 blocking_notifier_call_chain(&dev->bus->bus_notifier, 1002 blocking_notifier_call_chain(&dev->bus->p->bus_notifier,
1003 BUS_NOTIFY_DEL_DEVICE, dev); 1003 BUS_NOTIFY_DEL_DEVICE, dev);
1004 kobject_uevent(&dev->kobj, KOBJ_REMOVE); 1004 kobject_uevent(&dev->kobj, KOBJ_REMOVE);
1005 kobject_del(&dev->kobj); 1005 kobject_del(&dev->kobj);