USB: ehci-omap: Get platform resources by index rather than by name
authorRoger Quadros <rogerq@ti.com>
Tue, 12 Mar 2013 10:44:45 +0000 (12:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Mar 2013 18:51:46 +0000 (11:51 -0700)
commit3414211b914464113ba3cd19726e44b5e416087d
tree433396038ec9302f97f772cddccf16e0bcc359d8
parentdfdf9ad92aa90d2a5de732dbd5e23bb17501ac67
USB: ehci-omap: Get platform resources by index rather than by name

Since there is only one resource per type we don't really need
to use resource name to obtain it. This also also makes it easier
for device tree adaptation.

Signed-off-by: Roger Quadros <rogerq@ti.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-omap.c