aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/s3c-hsotg.c
diff options
context:
space:
mode:
authorLukasz Majewski <l.majewski@samsung.com>2012-05-04 08:17:15 -0400
committerFelipe Balbi <balbi@ti.com>2012-05-04 08:53:18 -0400
commit04b4a0fce530eab728e27e24b5a8d6192c6f70d9 (patch)
tree58209ea7efca90bf633f1eab59f4d15e986680a6 /drivers/usb/gadget/s3c-hsotg.c
parent94cb8fd637d7ec4a6685365c3287050969389cbe (diff)
usb:hsotg:samsung: Use clk_prepare_enable and clk_disable_unprepare
This commit adjust the s3c-hsotg to new clock API. Signed-off-by: Lukasz Majewski <l.majewski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/s3c-hsotg.c')
-rw-r--r--drivers/usb/gadget/s3c-hsotg.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/gadget/s3c-hsotg.c b/drivers/usb/gadget/s3c-hsotg.c
index 34599dff37ff..1cac0be86f68 100644
--- a/drivers/usb/gadget/s3c-hsotg.c
+++ b/drivers/usb/gadget/s3c-hsotg.c
@@ -3547,7 +3547,7 @@ static int __devinit s3c_hsotg_probe(struct platform_device *pdev)
3547 3547
3548 /* reset the system */ 3548 /* reset the system */
3549 3549
3550 clk_enable(hsotg->clk); 3550 clk_prepare_enable(hsotg->clk);
3551 3551
3552 /* regulators */ 3552 /* regulators */
3553 3553
@@ -3645,7 +3645,7 @@ err_supplies:
3645 3645
3646 regulator_bulk_free(ARRAY_SIZE(hsotg->supplies), hsotg->supplies); 3646 regulator_bulk_free(ARRAY_SIZE(hsotg->supplies), hsotg->supplies);
3647 3647
3648 clk_disable(hsotg->clk); 3648 clk_disable_unprepare(hsotg->clk);
3649 clk_put(hsotg->clk); 3649 clk_put(hsotg->clk);
3650 3650
3651err_regs: 3651err_regs:
@@ -3687,7 +3687,7 @@ static int __devexit s3c_hsotg_remove(struct platform_device *pdev)
3687 s3c_hsotg_phy_disable(hsotg); 3687 s3c_hsotg_phy_disable(hsotg);
3688 regulator_bulk_free(ARRAY_SIZE(hsotg->supplies), hsotg->supplies); 3688 regulator_bulk_free(ARRAY_SIZE(hsotg->supplies), hsotg->supplies);
3689 3689
3690 clk_disable(hsotg->clk); 3690 clk_disable_unprepare(hsotg->clk);
3691 clk_put(hsotg->clk); 3691 clk_put(hsotg->clk);
3692 3692
3693 device_unregister(&hsotg->gadget.dev); 3693 device_unregister(&hsotg->gadget.dev);