瀏覽代碼

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>
Lukasz Majewski 13 年之前
父節點
當前提交
04b4a0fce5
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      drivers/usb/gadget/s3c-hsotg.c

+ 3 - 3
drivers/usb/gadget/s3c-hsotg.c

@@ -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 @@ err_supplies:
 
 	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);