summaryrefslogtreecommitdiff
path: root/drivers/usb/core/usb.c
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@163.com>2015-12-23 21:26:51 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-01-24 21:00:33 -0800
commit6ae706aeaf42cd2fe6e541c72af6e2c0befe057c (patch)
tree8f46239ee249ebb38b5a27663cad8f0183ec572c /drivers/usb/core/usb.c
parent69ab55d7be6c3d69fa2e38f2a2bed4e91b9edf8d (diff)
USB: core, wusbcore: use bus_to_hcd
Use bus_to_hcd() instead of open-coding it. Signed-off-by: Geliang Tang <geliangtang@163.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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c
index 49b011f951b3..16ade41759cd 100644
--- a/drivers/usb/core/usb.c
+++ b/drivers/usb/core/usb.c
@@ -397,7 +397,7 @@ struct device_type usb_device_type = {
/* Returns 1 if @usb_bus is WUSB, 0 otherwise */
static unsigned usb_bus_is_wusb(struct usb_bus *bus)
{
- struct usb_hcd *hcd = container_of(bus, struct usb_hcd, self);
+ struct usb_hcd *hcd = bus_to_hcd(bus);
return hcd->wireless;
}