diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2005-06-21 00:15:16 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-10-28 19:47:46 -0400 |
commit | 3099e75a7ccc3c5b0a4cf988a76d9c4a7fa5e91a (patch) | |
tree | 8b1e7e5ddf097b347717e64aefb14ab33c9b2f90 /drivers/usb/core/hcd.c | |
parent | 4592bf5a22593704bb9e8c584a81bf6ca4f6cfec (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/hcd.c')
-rw-r--r-- | drivers/usb/core/hcd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c index 9ad3912a5ed7..b700b6cdb683 100644 --- a/drivers/usb/core/hcd.c +++ b/drivers/usb/core/hcd.c | |||
@@ -792,6 +792,7 @@ static int usb_register_bus(struct usb_bus *bus) | |||
792 | list_add (&bus->bus_list, &usb_bus_list); | 792 | list_add (&bus->bus_list, &usb_bus_list); |
793 | up (&usb_bus_list_lock); | 793 | up (&usb_bus_list_lock); |
794 | 794 | ||
795 | usb_notify_add_bus(bus); | ||
795 | usbfs_add_bus (bus); | 796 | usbfs_add_bus (bus); |
796 | usbmon_notify_bus_add (bus); | 797 | usbmon_notify_bus_add (bus); |
797 | 798 | ||
@@ -820,6 +821,7 @@ static void usb_deregister_bus (struct usb_bus *bus) | |||
820 | list_del (&bus->bus_list); | 821 | list_del (&bus->bus_list); |
821 | up (&usb_bus_list_lock); | 822 | up (&usb_bus_list_lock); |
822 | 823 | ||
824 | usb_notify_remove_bus(bus); | ||
823 | usbmon_notify_bus_remove (bus); | 825 | usbmon_notify_bus_remove (bus); |
824 | usbfs_remove_bus (bus); | 826 | usbfs_remove_bus (bus); |
825 | 827 | ||