aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ohci-exynos.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/host/ohci-exynos.c')
-rw-r--r--drivers/usb/host/ohci-exynos.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/usb/host/ohci-exynos.c b/drivers/usb/host/ohci-exynos.c
index d28b6583ba02..035a8a85a867 100644
--- a/drivers/usb/host/ohci-exynos.c
+++ b/drivers/usb/host/ohci-exynos.c
@@ -63,7 +63,6 @@ static int exynos_ohci_get_phy(struct device *dev,
63 63
64 phy = devm_of_phy_get(dev, child, NULL); 64 phy = devm_of_phy_get(dev, child, NULL);
65 exynos_ohci->phy[phy_number] = phy; 65 exynos_ohci->phy[phy_number] = phy;
66 of_node_put(child);
67 if (IS_ERR(phy)) { 66 if (IS_ERR(phy)) {
68 ret = PTR_ERR(phy); 67 ret = PTR_ERR(phy);
69 if (ret == -EPROBE_DEFER) { 68 if (ret == -EPROBE_DEFER) {
@@ -156,19 +155,13 @@ skip_phy:
156 goto fail_clk; 155 goto fail_clk;
157 156
158 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); 157 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
159 if (!res) {
160 dev_err(&pdev->dev, "Failed to get I/O memory\n");
161 err = -ENXIO;
162 goto fail_io;
163 }
164
165 hcd->rsrc_start = res->start;
166 hcd->rsrc_len = resource_size(res);
167 hcd->regs = devm_ioremap_resource(&pdev->dev, res); 158 hcd->regs = devm_ioremap_resource(&pdev->dev, res);
168 if (IS_ERR(hcd->regs)) { 159 if (IS_ERR(hcd->regs)) {
169 err = PTR_ERR(hcd->regs); 160 err = PTR_ERR(hcd->regs);
170 goto fail_io; 161 goto fail_io;
171 } 162 }
163 hcd->rsrc_start = res->start;
164 hcd->rsrc_len = resource_size(res);
172 165
173 irq = platform_get_irq(pdev, 0); 166 irq = platform_get_irq(pdev, 0);
174 if (!irq) { 167 if (!irq) {