Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 316904
b: refs/heads/master
c: 1c7f6cd
h: refs/heads/master
v: v3
  • Loading branch information
Fabio Estevam authored and Felipe Balbi committed Jun 12, 2012
1 parent 17424bd commit f5f3f29
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b785ea7ce662c47f6208071320638a4813722803
refs/heads/master: 1c7f6cd3f97b038e875094a8433e239f03d10955
12 changes: 6 additions & 6 deletions trunk/drivers/usb/gadget/fsl_mxc_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ int fsl_udc_clk_init(struct platform_device *pdev)
if (IS_ERR(mxc_ahb_clk))
return PTR_ERR(mxc_ahb_clk);

ret = clk_enable(mxc_ahb_clk);
ret = clk_prepare_enable(mxc_ahb_clk);
if (ret < 0) {
dev_err(&pdev->dev, "clk_enable(\"usb_ahb\") failed\n");
goto eenahb;
Expand All @@ -65,7 +65,7 @@ int fsl_udc_clk_init(struct platform_device *pdev)
}
}

ret = clk_enable(mxc_usb_clk);
ret = clk_prepare_enable(mxc_usb_clk);
if (ret < 0) {
dev_err(&pdev->dev, "clk_enable(\"usb_clk\") failed\n");
goto eenusb;
Expand All @@ -79,7 +79,7 @@ int fsl_udc_clk_init(struct platform_device *pdev)
mxc_usb_clk = NULL;
egusb:
if (!cpu_is_mx35())
clk_disable(mxc_ahb_clk);
clk_disable_unprepare(mxc_ahb_clk);
eenahb:
if (!cpu_is_mx35())
clk_put(mxc_ahb_clk);
Expand All @@ -104,7 +104,7 @@ void fsl_udc_clk_finalize(struct platform_device *pdev)

/* ULPI transceivers don't need usbpll */
if (pdata->phy_mode == FSL_USB2_PHY_ULPI) {
clk_disable(mxc_usb_clk);
clk_disable_unprepare(mxc_usb_clk);
clk_put(mxc_usb_clk);
mxc_usb_clk = NULL;
}
Expand All @@ -113,11 +113,11 @@ void fsl_udc_clk_finalize(struct platform_device *pdev)
void fsl_udc_clk_release(void)
{
if (mxc_usb_clk) {
clk_disable(mxc_usb_clk);
clk_disable_unprepare(mxc_usb_clk);
clk_put(mxc_usb_clk);
}
if (!cpu_is_mx35()) {
clk_disable(mxc_ahb_clk);
clk_disable_unprepare(mxc_ahb_clk);
clk_put(mxc_ahb_clk);
}
}

0 comments on commit f5f3f29

Please sign in to comment.