提交 04b4a0fc 编写于 作者: L Lukasz Majewski 提交者: Felipe Balbi

usb:hsotg:samsung: Use clk_prepare_enable and clk_disable_unprepare

This commit adjust the s3c-hsotg to new clock API.
Signed-off-by: NLukasz Majewski <l.majewski@samsung.com>
Signed-off-by: NKyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: NFelipe Balbi <balbi@ti.com>
上级 94cb8fd6
......@@ -3547,7 +3547,7 @@ static int __devinit s3c_hsotg_probe(struct platform_device *pdev)
/* reset the system */
clk_enable(hsotg->clk);
clk_prepare_enable(hsotg->clk);
/* regulators */
......@@ -3645,7 +3645,7 @@ static int __devinit s3c_hsotg_probe(struct platform_device *pdev)
regulator_bulk_free(ARRAY_SIZE(hsotg->supplies), hsotg->supplies);
clk_disable(hsotg->clk);
clk_disable_unprepare(hsotg->clk);
clk_put(hsotg->clk);
err_regs:
......@@ -3687,7 +3687,7 @@ static int __devexit s3c_hsotg_remove(struct platform_device *pdev)
s3c_hsotg_phy_disable(hsotg);
regulator_bulk_free(ARRAY_SIZE(hsotg->supplies), hsotg->supplies);
clk_disable(hsotg->clk);
clk_disable_unprepare(hsotg->clk);
clk_put(hsotg->clk);
device_unregister(&hsotg->gadget.dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册