diff options
-rw-r--r-- | drivers/usb/host/ohci-at91.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/usb/host/ohci-at91.c b/drivers/usb/host/ohci-at91.c index d4608c2d5b64..a665b3eaa746 100644 --- a/drivers/usb/host/ohci-at91.c +++ b/drivers/usb/host/ohci-at91.c | |||
@@ -223,7 +223,7 @@ static void __devexit usb_hcd_at91_remove(struct usb_hcd *hcd, | |||
223 | /*-------------------------------------------------------------------------*/ | 223 | /*-------------------------------------------------------------------------*/ |
224 | 224 | ||
225 | static int __devinit | 225 | static int __devinit |
226 | ohci_at91_start (struct usb_hcd *hcd) | 226 | ohci_at91_reset (struct usb_hcd *hcd) |
227 | { | 227 | { |
228 | struct at91_usbh_data *board = hcd->self.controller->platform_data; | 228 | struct at91_usbh_data *board = hcd->self.controller->platform_data; |
229 | struct ohci_hcd *ohci = hcd_to_ohci (hcd); | 229 | struct ohci_hcd *ohci = hcd_to_ohci (hcd); |
@@ -233,6 +233,14 @@ ohci_at91_start (struct usb_hcd *hcd) | |||
233 | return ret; | 233 | return ret; |
234 | 234 | ||
235 | ohci->num_ports = board->ports; | 235 | ohci->num_ports = board->ports; |
236 | return 0; | ||
237 | } | ||
238 | |||
239 | static int __devinit | ||
240 | ohci_at91_start (struct usb_hcd *hcd) | ||
241 | { | ||
242 | struct ohci_hcd *ohci = hcd_to_ohci (hcd); | ||
243 | int ret; | ||
236 | 244 | ||
237 | if ((ret = ohci_run(ohci)) < 0) { | 245 | if ((ret = ohci_run(ohci)) < 0) { |
238 | dev_err(hcd->self.controller, "can't start %s\n", | 246 | dev_err(hcd->self.controller, "can't start %s\n", |
@@ -419,6 +427,7 @@ static const struct hc_driver ohci_at91_hc_driver = { | |||
419 | /* | 427 | /* |
420 | * basic lifecycle operations | 428 | * basic lifecycle operations |
421 | */ | 429 | */ |
430 | .reset = ohci_at91_reset, | ||
422 | .start = ohci_at91_start, | 431 | .start = ohci_at91_start, |
423 | .stop = ohci_stop, | 432 | .stop = ohci_stop, |
424 | .shutdown = ohci_shutdown, | 433 | .shutdown = ohci_shutdown, |