aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/host/ohci-exynos.c')
-rw-r--r--drivers/usb/host/ohci-exynos.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/host/ohci-exynos.c b/drivers/usb/host/ohci-exynos.c
index 2cd105be7319..6865b919403f 100644
--- a/drivers/usb/host/ohci-exynos.c
+++ b/drivers/usb/host/ohci-exynos.c
@@ -66,10 +66,12 @@ static int exynos_ohci_get_phy(struct device *dev,
66 if (IS_ERR(phy)) { 66 if (IS_ERR(phy)) {
67 ret = PTR_ERR(phy); 67 ret = PTR_ERR(phy);
68 if (ret == -EPROBE_DEFER) { 68 if (ret == -EPROBE_DEFER) {
69 of_node_put(child);
69 return ret; 70 return ret;
70 } else if (ret != -ENOSYS && ret != -ENODEV) { 71 } else if (ret != -ENOSYS && ret != -ENODEV) {
71 dev_err(dev, 72 dev_err(dev,
72 "Error retrieving usb2 phy: %d\n", ret); 73 "Error retrieving usb2 phy: %d\n", ret);
74 of_node_put(child);
73 return ret; 75 return ret;
74 } 76 }
75 } 77 }