diff options
author | Geliang Tang <geliangtang@163.com> | 2015-12-23 08:26:51 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-01-25 00:00:33 -0500 |
commit | 6ae706aeaf42cd2fe6e541c72af6e2c0befe057c (patch) | |
tree | 8f46239ee249ebb38b5a27663cad8f0183ec572c /drivers/usb/core/usb.c | |
parent | 69ab55d7be6c3d69fa2e38f2a2bed4e91b9edf8d (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.c | 2 |
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 = { | |||
397 | /* Returns 1 if @usb_bus is WUSB, 0 otherwise */ | 397 | /* Returns 1 if @usb_bus is WUSB, 0 otherwise */ |
398 | static unsigned usb_bus_is_wusb(struct usb_bus *bus) | 398 | static unsigned usb_bus_is_wusb(struct usb_bus *bus) |
399 | { | 399 | { |
400 | struct usb_hcd *hcd = container_of(bus, struct usb_hcd, self); | 400 | struct usb_hcd *hcd = bus_to_hcd(bus); |
401 | return hcd->wireless; | 401 | return hcd->wireless; |
402 | } | 402 | } |
403 | 403 | ||