diff options
author | Geliang Tang <geliangtang@163.com> | 2015-12-23 16:26:51 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-01-25 08:00:33 +0300 |
commit | 6ae706aeaf42cd2fe6e541c72af6e2c0befe057c (patch) | |
tree | 8f46239ee249ebb38b5a27663cad8f0183ec572c /drivers/usb/wusbcore/wusbhc.h | |
parent | 69ab55d7be6c3d69fa2e38f2a2bed4e91b9edf8d (diff) | |
download | linux-6ae706aeaf42cd2fe6e541c72af6e2c0befe057c.tar.xz |
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/wusbcore/wusbhc.h')
-rw-r--r-- | drivers/usb/wusbcore/wusbhc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/wusbcore/wusbhc.h b/drivers/usb/wusbcore/wusbhc.h index 41838db7f85c..8c5bd000739b 100644 --- a/drivers/usb/wusbcore/wusbhc.h +++ b/drivers/usb/wusbcore/wusbhc.h @@ -336,7 +336,7 @@ static inline struct usb_hcd *usb_hcd_get_by_usb_dev(struct usb_device *usb_dev) { struct usb_hcd *usb_hcd; - usb_hcd = container_of(usb_dev->bus, struct usb_hcd, self); + usb_hcd = bus_to_hcd(usb_dev->bus); return usb_get_hcd(usb_hcd); } |