Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325987
b: refs/heads/master
c: 10770c5
h: refs/heads/master
i:
  325985: 8bc6bb1
  325983: fa10887
v: v3
  • Loading branch information
Matthias Brugger authored and Felipe Balbi committed Aug 20, 2012
1 parent 75c5a3d commit 9f864a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 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: 12a19b5f836c1a1b838e668f9aa804d017d8c58b
refs/heads/master: 10770c5aa0fe686014e9c15906a3ff702a4b0baf
4 changes: 1 addition & 3 deletions trunk/drivers/usb/musb/omap2430.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ static void omap2430_musb_set_vbus(struct musb *musb, int is_on)
struct usb_otg *otg = musb->xceiv->otg;
u8 devctl;
unsigned long timeout = jiffies + msecs_to_jiffies(1000);
int ret = 1;
/* HDRC controls CPEN, but beware current surges during device
* connect. They can trigger transient overcurrent conditions
* that must be ignored.
Expand All @@ -168,12 +167,11 @@ static void omap2430_musb_set_vbus(struct musb *musb, int is_on)
|| loops-- <= 0) {
dev_err(musb->controller,
"configured as A device timeout");
ret = -EINVAL;
break;
}
}

if (ret && otg->set_vbus)
if (otg->set_vbus)
otg_set_vbus(otg, 1);
} else {
musb->is_active = 1;
Expand Down

0 comments on commit 9f864a8

Please sign in to comment.