aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ohci-spear.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/host/ohci-spear.c')
-rw-r--r--drivers/usb/host/ohci-spear.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/usb/host/ohci-spear.c b/drivers/usb/host/ohci-spear.c
index 8d5876692e7c..4a54f9d73136 100644
--- a/drivers/usb/host/ohci-spear.c
+++ b/drivers/usb/host/ohci-spear.c
@@ -74,20 +74,15 @@ static int spear_ohci_hcd_drv_probe(struct platform_device *pdev)
74 } 74 }
75 75
76 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 76 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
77 if (!res) {
78 retval = -ENODEV;
79 goto err_put_hcd;
80 }
81
82 hcd->rsrc_start = pdev->resource[0].start;
83 hcd->rsrc_len = resource_size(res);
84
85 hcd->regs = devm_ioremap_resource(&pdev->dev, res); 77 hcd->regs = devm_ioremap_resource(&pdev->dev, res);
86 if (IS_ERR(hcd->regs)) { 78 if (IS_ERR(hcd->regs)) {
87 retval = PTR_ERR(hcd->regs); 79 retval = PTR_ERR(hcd->regs);
88 goto err_put_hcd; 80 goto err_put_hcd;
89 } 81 }
90 82
83 hcd->rsrc_start = pdev->resource[0].start;
84 hcd->rsrc_len = resource_size(res);
85
91 sohci_p = to_spear_ohci(hcd); 86 sohci_p = to_spear_ohci(hcd);
92 sohci_p->clk = usbh_clk; 87 sohci_p->clk = usbh_clk;
93 88