[ARM] 5446/1: ohci-at91: Limit vbus_pin assignment to the size of the array
authorJustin Waters <justin.waters@timesys.com>
Fri, 3 Apr 2009 20:06:53 +0000 (21:06 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 8 Apr 2009 19:36:18 +0000 (20:36 +0100)
commit3d6fdf7563d0a67c6973cf421f7405524ed8bdaf
tree85a7e3357548930e06b161f24e14cc74b1f80aca
parentd0176f612f5c3edca00b9d0cc65555ad34843ec7
[ARM] 5446/1: ohci-at91: Limit vbus_pin assignment to the size of the array

Currently, the vbus_pin assignment loop is limited by the value of the "ports"
variable in the platform data.  Now that the vbus_pin array is no longer
flexible, we can use its actual size.

Signed-off-by: Justin Waters <justin.waters@timesys.com>
Acked-by: Andrew Victor <linux@maxim.org.za>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/usb/host/ohci-at91.c