Skip to content

Commit

Permalink
usb: dwc3: exynos: use clk_prepare_enable and clk_disable_unprepare
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vivek Gautam authored and Felipe Balbi committed Mar 18, 2013
1 parent adcf20d commit ddb5147
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/usb/dwc3/dwc3-exynos.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit ddb5147

Please sign in to comment.