summaryrefslogtreecommitdiff
path: root/drivers/usb/core/hub.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/hub.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/hub.c')
-rw-r--r--drivers/usb/core/hub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index 3c9b22eb78ca..9ec5733b62f4 100644
--- a/drivers/usb/core/hub.c
+++ b/drivers/usb/core/hub.c
@@ -2659,7 +2659,7 @@ static unsigned hub_is_wusb(struct usb_hub *hub)
struct usb_hcd *hcd;
if (hub->hdev->parent != NULL) /* not a root hub? */
return 0;
- hcd = container_of(hub->hdev->bus, struct usb_hcd, self);
+ hcd = bus_to_hcd(hub->hdev->bus);
return hcd->wireless;
}