aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2013-09-13 15:57:34 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-09-26 12:45:40 -0400
commitdb8f2aa358958fe5f82e5b9ffa6e0abbaa4fc236 (patch)
tree13df0954a395a84896e93e70eb2aa83c1a30afad /drivers/usb
parent232275a089dfd2e77377a85f11d0a4e3ca60e612 (diff)
USB: correct the usb_disconnect() comment about usb_bus_list_lock
usb_disconnect() no longer acquires usb_bus_list_lock, so update its comment to that effect. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/core/hub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index 6f783bfe2959..6d97cf7be048 100644
--- a/drivers/usb/core/hub.c
+++ b/drivers/usb/core/hub.c
@@ -2023,8 +2023,8 @@ static void hub_free_dev(struct usb_device *udev)
2023 * Something got disconnected. Get rid of it and all of its children. 2023 * Something got disconnected. Get rid of it and all of its children.
2024 * 2024 *
2025 * If *pdev is a normal device then the parent hub must already be locked. 2025 * If *pdev is a normal device then the parent hub must already be locked.
2026 * If *pdev is a root hub then this routine will acquire the 2026 * If *pdev is a root hub then the caller must hold the usb_bus_list_lock,
2027 * usb_bus_list_lock on behalf of the caller. 2027 * which protects the set of root hubs as well as the list of buses.
2028 * 2028 *
2029 * Only hub drivers (including virtual root hub drivers for host 2029 * Only hub drivers (including virtual root hub drivers for host
2030 * controllers) should ever call this. 2030 * controllers) should ever call this.