Skip to content

Commit

Permalink
usb:hsotg:samsung: Use clk_prepare_enable and clk_disable_unprepare
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lukasz Majewski authored and Felipe Balbi committed May 4, 2012
1 parent 94cb8fd commit 04b4a0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/usb/gadget/s3c-hsotg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 04b4a0f

Please sign in to comment.