aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/core/hub.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2005-06-21 00:15:16 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2005-10-28 19:47:46 -0400
commit3099e75a7ccc3c5b0a4cf988a76d9c4a7fa5e91a (patch)
tree8b1e7e5ddf097b347717e64aefb14ab33c9b2f90 /drivers/usb/core/hub.c
parent4592bf5a22593704bb9e8c584a81bf6ca4f6cfec (diff)
[PATCH] USB: add notifier functions to the USB core for devices and busses
This should let us get rid of all of the different hooks in the USB core for when something has changed. Also, some other parts of the kernel have wanted to know this kind of information at times. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/core/hub.c')
-rw-r--r--drivers/usb/core/hub.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index 273e6ccca213..4f1a8c8cf92b 100644
--- a/drivers/usb/core/hub.c
+++ b/drivers/usb/core/hub.c
@@ -1128,6 +1128,8 @@ void usb_disconnect(struct usb_device **pdev)
1128 */ 1128 */
1129 usb_disable_device(udev, 0); 1129 usb_disable_device(udev, 0);
1130 1130
1131 usb_notify_remove_device(udev);
1132
1131 /* Free the device number, remove the /proc/bus/usb entry and 1133 /* Free the device number, remove the /proc/bus/usb entry and
1132 * the sysfs attributes, and delete the parent's children[] 1134 * the sysfs attributes, and delete the parent's children[]
1133 * (or root_hub) pointer. 1135 * (or root_hub) pointer.
@@ -1371,6 +1373,7 @@ int usb_new_device(struct usb_device *udev)
1371 } 1373 }
1372 1374
1373 /* USB device state == configured ... usable */ 1375 /* USB device state == configured ... usable */
1376 usb_notify_add_device(udev);
1374 1377
1375 /* add a /proc/bus/usb entry */ 1378 /* add a /proc/bus/usb entry */
1376 usbdev_add(udev); 1379 usbdev_add(udev);