Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 190158
b: refs/heads/master
c: 18f9119
h: refs/heads/master
v: v3
  • Loading branch information
Ajay Kumar Gupta authored and Greg Kroah-Hartman committed Apr 22, 2010
1 parent 690ca5a commit 3057c28
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 4c1f5c88aaffacb2831353b6d3c1557be52071a2
refs/heads/master: 18f91196b6e7994bd694a96a6c3b0ac1f3e81d82
6 changes: 4 additions & 2 deletions trunk/drivers/usb/host/ehci-omap.c
Original file line number Diff line number Diff line change
Expand Up @@ -629,11 +629,13 @@ static int ehci_hcd_omap_probe(struct platform_device *pdev)
}
snprintf(supply, sizeof(supply), "hsusb%d", i);
omap->regulator[i] = regulator_get(omap->dev, supply);
if (IS_ERR(omap->regulator[i]))
if (IS_ERR(omap->regulator[i])) {
omap->regulator[i] = NULL;
dev_dbg(&pdev->dev,
"failed to get ehci port%d regulator\n", i);
else
} else {
regulator_enable(omap->regulator[i]);
}
}

ret = omap_start_ehc(omap, hcd);
Expand Down

0 comments on commit 3057c28

Please sign in to comment.