From bf2d851f06c4498b7b6eb1746f95c241c828c2a1 Mon Sep 17 00:00:00 2001 From: Justin Waters Date: Fri, 3 Apr 2009 21:06:53 +0100 Subject: [PATCH] --- yaml --- r: 142827 b: refs/heads/master c: 3d6fdf7563d0a67c6973cf421f7405524ed8bdaf h: refs/heads/master i: 142825: dcbc4e8488c2407208ee8a8723c0d4af627dc227 142823: 00c2f4fe38c1363c5ed919b1804ed55c449aaf16 v: v3 --- [refs] | 2 +- trunk/drivers/usb/host/ohci-at91.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index efc00544faf0..8d3c15bfe456 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d0176f612f5c3edca00b9d0cc65555ad34843ec7 +refs/heads/master: 3d6fdf7563d0a67c6973cf421f7405524ed8bdaf diff --git a/trunk/drivers/usb/host/ohci-at91.c b/trunk/drivers/usb/host/ohci-at91.c index 4ed228a89943..bb5e6f671578 100644 --- a/trunk/drivers/usb/host/ohci-at91.c +++ b/trunk/drivers/usb/host/ohci-at91.c @@ -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"); @@ -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);