Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 142827
b: refs/heads/master
c: 3d6fdf7
h: refs/heads/master
i:
  142825: dcbc4e8
  142823: 00c2f4f
v: v3
  • Loading branch information
Justin Waters authored and Russell King committed Apr 8, 2009
1 parent 2ef6a94 commit bf2d851
Show file tree
Hide file tree
Showing 2 changed files with 3 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: d0176f612f5c3edca00b9d0cc65555ad34843ec7
refs/heads/master: 3d6fdf7563d0a67c6973cf421f7405524ed8bdaf
4 changes: 2 additions & 2 deletions trunk/drivers/usb/host/ohci-at91.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ static int ohci_hcd_at91_drv_probe(struct platform_device *pdev)
* are always powered while this driver is active, and use
* active-low power switches.
*/
for (i = 0; i < pdata->ports; i++) {
for (i = 0; i < ARRAY_SIZE(pdata->vbus_pin); i++) {
if (pdata->vbus_pin[i] <= 0)
continue;
gpio_request(pdata->vbus_pin[i], "ohci_vbus");
Expand All @@ -298,7 +298,7 @@ static int ohci_hcd_at91_drv_remove(struct platform_device *pdev)
int i;

if (pdata) {
for (i = 0; i < pdata->ports; i++) {
for (i = 0; i < ARRAY_SIZE(pdata->vbus_pin); i++) {
if (pdata->vbus_pin[i] <= 0)
continue;
gpio_direction_output(pdata->vbus_pin[i], 1);
Expand Down

0 comments on commit bf2d851

Please sign in to comment.