projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
adcf20d
)
usb: dwc3: exynos: use clk_prepare_enable and clk_disable_unprepare
author
Vivek Gautam
<
[email protected]
>
Thu, 14 Mar 2013 10:44:58 +0000
(16:14 +0530)
committer
Felipe Balbi
<
[email protected]
>
Mon, 18 Mar 2013 09:18:16 +0000
(11:18 +0200)
Convert clk_enable/clk_disable to clk_prepare_enable/clk_disable_unprepare
calls as required by common clock framework.
Signed-off-by: Vivek Gautam <
[email protected]
>
CC: Kukjin Kim <
[email protected]
>
Signed-off-by: Felipe Balbi <
[email protected]
>
drivers/usb/dwc3/dwc3-exynos.c
patch
|
blob
|
history
diff --git
a/drivers/usb/dwc3/dwc3-exynos.c
b/drivers/usb/dwc3/dwc3-exynos.c
index f77ec75e2d1e9a25cc38c46cc72fb7c736fe4360..1ea7bd8af6ae7821458d6734ce13c2117ce61338 100644
(file)
--- 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)
exynos->dev = dev;
exynos->clk = clk;
- clk_enable(exynos->clk);
+ clk_
prepare_
enable(exynos->clk);
if (node) {
ret = of_platform_populate(node, NULL, NULL, dev);
@@
-155,7
+155,7
@@
static int dwc3_exynos_probe(struct platform_device *pdev)
return 0;
err2:
- clk_disable(clk);
+ clk_disable
_unprepare
(clk);
err1:
return ret;
}
@@
-168,7
+168,7
@@
static int dwc3_exynos_remove(struct platform_device *pdev)
platform_device_unregister(exynos->usb3_phy);
device_for_each_child(&pdev->dev, NULL, dwc3_exynos_remove_child);
- clk_disable(exynos->clk);
+ clk_disable
_unprepare
(exynos->clk);
return 0;
}