[PATCH v2 2/2] USB: unexport usb_bus_list_lock and update comments

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



usb_bus_list_lock is used by usbfs, but that's in the same module as
hcd.c, so there's no need to export it.  Update the comment to show
that it protects the set of root hubs as well as the list of buses.

Signed-off-by: Bjorn Helgaas <bhelgaas@xxxxxxxxxx>
---
 drivers/usb/core/hcd.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c
index 014dc99..e9a7d81 100644
--- a/drivers/usb/core/hcd.c
+++ b/drivers/usb/core/hcd.c
@@ -97,9 +97,8 @@ struct usb_busmap {
 };
 static struct usb_busmap busmap;
 
-/* used when updating list of hcds */
-DEFINE_MUTEX(usb_bus_list_lock);	/* exported only for usbfs */
-EXPORT_SYMBOL_GPL (usb_bus_list_lock);
+/* protects both usb_bus_list and the set of root hubs */
+DEFINE_MUTEX(usb_bus_list_lock);
 
 /* used for controlling access to virtual root hubs */
 static DEFINE_SPINLOCK(hcd_root_hub_lock);

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux