summaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ohci-omap3.c
diff options
context:
space:
mode:
authorRoger Quadros <rogerq@ti.com>2013-03-12 12:44:46 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-15 11:51:46 -0700
commit8c3ec38550a6b880738c8b1982f9207d0fd5a339 (patch)
tree1ba736d2f07eb647baa943ca5a78eb581c647e9f /drivers/usb/host/ohci-omap3.c
parent3414211b914464113ba3cd19726e44b5e416087d (diff)
downloadlinux-stable-8c3ec38550a6b880738c8b1982f9207d0fd5a339.tar.gz
linux-stable-8c3ec38550a6b880738c8b1982f9207d0fd5a339.tar.bz2
linux-stable-8c3ec38550a6b880738c8b1982f9207d0fd5a339.zip
USB: ohci-omap3: 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>
Diffstat (limited to 'drivers/usb/host/ohci-omap3.c')
-rw-r--r--drivers/usb/host/ohci-omap3.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/host/ohci-omap3.c b/drivers/usb/host/ohci-omap3.c
index eb35d9630237..5ed28c5af759 100644
--- a/drivers/usb/host/ohci-omap3.c
+++ b/drivers/usb/host/ohci-omap3.c
@@ -141,14 +141,13 @@ static int ohci_hcd_omap3_probe(struct platform_device *pdev)
return -ENODEV;
}
- irq = platform_get_irq_byname(pdev, "ohci-irq");
+ irq = platform_get_irq(pdev, 0);
if (irq < 0) {
dev_err(dev, "OHCI irq failed\n");
return -ENODEV;
}
- res = platform_get_resource_byname(pdev,
- IORESOURCE_MEM, "ohci");
+ res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (!res) {
dev_err(dev, "UHH OHCI get resource failed\n");
return -ENOMEM;