提交 989c78dd 编写于 作者: L Laurent Pinchart 提交者: Felipe Balbi

usb: gadget: r8a66597-udc: convert to clk_prepare/unprepare

Turn clk_enable() and clk_disable() calls into clk_prepare_enable() and
clk_disable_unprepare() to get ready for the migration to the common
clock framework.

Cc: Felipe Balbi <balbi@ti.com>
Cc: linux-usb@vger.kernel.org
Signed-off-by: NLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: NFelipe Balbi <balbi@ti.com>
上级 6ce4eac1
...@@ -1833,7 +1833,7 @@ static int __exit r8a66597_remove(struct platform_device *pdev) ...@@ -1833,7 +1833,7 @@ static int __exit r8a66597_remove(struct platform_device *pdev)
r8a66597_free_request(&r8a66597->ep[0].ep, r8a66597->ep0_req); r8a66597_free_request(&r8a66597->ep[0].ep, r8a66597->ep0_req);
if (r8a66597->pdata->on_chip) { if (r8a66597->pdata->on_chip) {
clk_disable(r8a66597->clk); clk_disable_unprepare(r8a66597->clk);
clk_put(r8a66597->clk); clk_put(r8a66597->clk);
} }
...@@ -1931,7 +1931,7 @@ static int __init r8a66597_probe(struct platform_device *pdev) ...@@ -1931,7 +1931,7 @@ static int __init r8a66597_probe(struct platform_device *pdev)
ret = PTR_ERR(r8a66597->clk); ret = PTR_ERR(r8a66597->clk);
goto clean_up; goto clean_up;
} }
clk_enable(r8a66597->clk); clk_prepare_enable(r8a66597->clk);
} }
if (r8a66597->pdata->sudmac) { if (r8a66597->pdata->sudmac) {
...@@ -1996,7 +1996,7 @@ static int __init r8a66597_probe(struct platform_device *pdev) ...@@ -1996,7 +1996,7 @@ static int __init r8a66597_probe(struct platform_device *pdev)
free_irq(irq, r8a66597); free_irq(irq, r8a66597);
clean_up2: clean_up2:
if (r8a66597->pdata->on_chip) { if (r8a66597->pdata->on_chip) {
clk_disable(r8a66597->clk); clk_disable_unprepare(r8a66597->clk);
clk_put(r8a66597->clk); clk_put(r8a66597->clk);
} }
clean_up: clean_up:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册