Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 296312
b: refs/heads/master
c: 81e6ca3
h: refs/heads/master
v: v3
  • Loading branch information
Russell King committed Mar 24, 2012
1 parent 10e0992 commit 6a694b3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 846a70487e2a0e5045c6a428a0969d3e0490b359
refs/heads/master: 81e6ca3eb74d6bdbab181dd2db378f49f76f0d97
20 changes: 11 additions & 9 deletions trunk/drivers/usb/host/ohci-sa1111.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,22 +55,25 @@ static void dump_hci_status(struct usb_hcd *hcd, const char *label)
}
#endif

static int ohci_sa1111_reset(struct usb_hcd *hcd)
{
struct ohci_hcd *ohci = hcd_to_ohci(hcd);

ohci_hcd_init(ohci);
return ohci_init(ohci);
}

static int __devinit ohci_sa1111_start(struct usb_hcd *hcd)
{
struct ohci_hcd *ohci = hcd_to_ohci(hcd);
int ret;

ret = ohci_init(ohci);
if (ret < 0)
return ret;

ret = ohci_run(ohci);
if (ret < 0) {
err("can't start %s", hcd->self.bus_name);
ohci_err(ohci, "can't start\n");
ohci_stop(hcd);
return ret;
}
return 0;
return ret;
}

static const struct hc_driver ohci_sa1111_hc_driver = {
Expand All @@ -87,6 +90,7 @@ static const struct hc_driver ohci_sa1111_hc_driver = {
/*
* basic lifecycle operations
*/
.reset = ohci_sa1111_reset,
.start = ohci_sa1111_start,
.stop = ohci_stop,
.shutdown = ohci_shutdown,
Expand Down Expand Up @@ -200,8 +204,6 @@ static int ohci_hcd_sa1111_probe(struct sa1111_dev *dev)
if (ret)
goto err2;

ohci_hcd_init(hcd_to_ohci(hcd));

ret = usb_add_hcd(hcd, dev->irq[1], 0);
if (ret == 0)
return ret;
Expand Down

0 comments on commit 6a694b3

Please sign in to comment.