aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/dwc3/dwc3-exynos.c
diff options
context:
space:
mode:
authorVivek Gautam <gautam.vivek@samsung.com>2013-03-14 06:44:58 -0400
committerFelipe Balbi <balbi@ti.com>2013-03-18 05:18:16 -0400
commitddb5147cea10308fac7d4ea44cbd164929199e03 (patch)
tree45149a86633b5f5d5a628ac4843b7754d26503d9 /drivers/usb/dwc3/dwc3-exynos.c
parentadcf20dcd2629112c467f30a2c057479979ae64c (diff)
usb: dwc3: exynos: use clk_prepare_enable and clk_disable_unprepare
Convert clk_enable/clk_disable to clk_prepare_enable/clk_disable_unprepare calls as required by common clock framework. Signed-off-by: Vivek Gautam <gautam.vivek@samsung.com> CC: Kukjin Kim <kgene.kim@samsung.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
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}