diff options
author | Heiner Kallweit | 2016-01-25 20:30:30 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2016-02-03 22:26:30 +0100 |
commit | 5363de75307e333d89df7531f9dd8310d973ecdb (patch) | |
tree | 5c90ec1dbcf6d1626984ec6306db7d73ee8dd3ab /drivers/usb/core/usb.c | |
parent | xhci: set slot context speed field to SuperSpeedPlus for USB 3.1 SSP devices (diff) | |
download | kernel-qcow2-linux-5363de75307e333d89df7531f9dd8310d973ecdb.tar.gz kernel-qcow2-linux-5363de75307e333d89df7531f9dd8310d973ecdb.tar.xz kernel-qcow2-linux-5363de75307e333d89df7531f9dd8310d973ecdb.zip |
usb: core: switch bus numbering to using idr
USB bus numbering is based on directly dealing with bitmaps and
defines a separate list of busses.
This can be simplified and unified by using existing idr functionality.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core/usb.c')
-rw-r--r-- | drivers/usb/core/usb.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c index 16ade41759cd..524c9822d2bb 100644 --- a/drivers/usb/core/usb.c +++ b/drivers/usb/core/usb.c @@ -1115,6 +1115,7 @@ static void __exit usb_exit(void) bus_unregister(&usb_bus_type); usb_acpi_unregister(); usb_debugfs_cleanup(); + idr_destroy(&usb_bus_idr); } subsys_initcall(usb_init); |