diff options
| author | Geliang Tang <[email protected]> | 2015-12-23 13:26:51 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2016-01-25 05:00:33 +0000 |
| commit | 6ae706aeaf42cd2fe6e541c72af6e2c0befe057c (patch) | |
| tree | 8f46239ee249ebb38b5a27663cad8f0183ec572c /drivers/usb/core/hub.c | |
| parent | USB: core, devio: use to_usb_device (diff) | |
| download | kernel-6ae706aeaf42cd2fe6e541c72af6e2c0befe057c.tar.gz kernel-6ae706aeaf42cd2fe6e541c72af6e2c0befe057c.zip | |
USB: core, wusbcore: use bus_to_hcd
Use bus_to_hcd() instead of open-coding it.
Signed-off-by: Geliang Tang <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/core/hub.c')
| -rw-r--r-- | drivers/usb/core/hub.c | 2 |
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; } |
