aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/dwc3-exynos.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/dwc3/dwc3-exynos.c')
-rw-r--r--drivers/usb/dwc3/dwc3-exynos.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/dwc3/dwc3-exynos.c b/drivers/usb/dwc3/dwc3-exynos.c
index f77ec75e2d1e..1ea7bd8af6ae 100644
--- a/drivers/usb/dwc3/dwc3-exynos.c
+++ b/drivers/usb/dwc3/dwc3-exynos.c
@@ -138,7 +138,7 @@ static int dwc3_exynos_probe(struct platform_device *pdev)
138 exynos->dev = dev; 138 exynos->dev = dev;
139 exynos->clk = clk; 139 exynos->clk = clk;
140 140
141 clk_enable(exynos->clk); 141 clk_prepare_enable(exynos->clk);
142 142
143 if (node) { 143 if (node) {
144 ret = of_platform_populate(node, NULL, NULL, dev); 144 ret = of_platform_populate(node, NULL, NULL, dev);
@@ -155,7 +155,7 @@ static int dwc3_exynos_probe(struct platform_device *pdev)
155 return 0; 155 return 0;
156 156
157err2: 157err2:
158 clk_disable(clk); 158 clk_disable_unprepare(clk);
159err1: 159err1:
160 return ret; 160 return ret;
161} 161}
@@ -168,7 +168,7 @@ static int dwc3_exynos_remove(struct platform_device *pdev)
168 platform_device_unregister(exynos->usb3_phy); 168 platform_device_unregister(exynos->usb3_phy);
169 device_for_each_child(&pdev->dev, NULL, dwc3_exynos_remove_child); 169 device_for_each_child(&pdev->dev, NULL, dwc3_exynos_remove_child);
170 170
171 clk_disable(exynos->clk); 171 clk_disable_unprepare(exynos->clk);
172 172
173 return 0; 173 return 0;
174} 174}