aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-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)
141 return -ENODEV; 141 return -ENODEV;
142 } 142 }
143 143
144 irq = platform_get_irq_byname(pdev, "ohci-irq"); 144 irq = platform_get_irq(pdev, 0);
145 if (irq < 0) { 145 if (irq < 0) {
146 dev_err(dev, "OHCI irq failed\n"); 146 dev_err(dev, "OHCI irq failed\n");
147 return -ENODEV; 147 return -ENODEV;
148 } 148 }
149 149
150 res = platform_get_resource_byname(pdev, 150 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
151 IORESOURCE_MEM, "ohci");
152 if (!res) { 151 if (!res) {
153 dev_err(dev, "UHH OHCI get resource failed\n"); 152 dev_err(dev, "UHH OHCI get resource failed\n");
154 return -ENOMEM; 153 return -ENOMEM;