aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/core/hcd.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/core/hcd.c')
-rw-r--r--drivers/usb/core/hcd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c
index 9af9506352f3..232c8c93dd3a 100644
--- a/drivers/usb/core/hcd.c
+++ b/drivers/usb/core/hcd.c
@@ -2237,7 +2237,7 @@ int usb_hcd_get_frame_number (struct usb_device *udev)
2237 2237
2238int hcd_bus_suspend(struct usb_device *rhdev, pm_message_t msg) 2238int hcd_bus_suspend(struct usb_device *rhdev, pm_message_t msg)
2239{ 2239{
2240 struct usb_hcd *hcd = container_of(rhdev->bus, struct usb_hcd, self); 2240 struct usb_hcd *hcd = bus_to_hcd(rhdev->bus);
2241 int status; 2241 int status;
2242 int old_state = hcd->state; 2242 int old_state = hcd->state;
2243 2243
@@ -2286,7 +2286,7 @@ int hcd_bus_suspend(struct usb_device *rhdev, pm_message_t msg)
2286 2286
2287int hcd_bus_resume(struct usb_device *rhdev, pm_message_t msg) 2287int hcd_bus_resume(struct usb_device *rhdev, pm_message_t msg)
2288{ 2288{
2289 struct usb_hcd *hcd = container_of(rhdev->bus, struct usb_hcd, self); 2289 struct usb_hcd *hcd = bus_to_hcd(rhdev->bus);
2290 int status; 2290 int status;
2291 int old_state = hcd->state; 2291 int old_state = hcd->state;
2292 2292
@@ -2400,7 +2400,7 @@ int usb_bus_start_enum(struct usb_bus *bus, unsigned port_num)
2400 * boards with root hubs hooked up to internal devices (instead of 2400 * boards with root hubs hooked up to internal devices (instead of
2401 * just the OTG port) may need more attention to resetting... 2401 * just the OTG port) may need more attention to resetting...
2402 */ 2402 */
2403 hcd = container_of (bus, struct usb_hcd, self); 2403 hcd = bus_to_hcd(bus);
2404 if (port_num && hcd->driver->start_port_reset) 2404 if (port_num && hcd->driver->start_port_reset)
2405 status = hcd->driver->start_port_reset(hcd, port_num); 2405 status = hcd->driver->start_port_reset(hcd, port_num);
2406 2406