ret = PTR_ERR(priv->usbclk);
goto err_clk;
}
- clk_enable(priv->usbclk);
+ clk_prepare_enable(priv->usbclk);
if (!cpu_is_mx35() && !cpu_is_mx25()) {
priv->ahbclk = clk_get(dev, "usb_ahb");
ret = PTR_ERR(priv->ahbclk);
goto err_clk_ahb;
}
- clk_enable(priv->ahbclk);
+ clk_prepare_enable(priv->ahbclk);
}
/* "dr" device has its own clock on i.MX51 */
ret = PTR_ERR(priv->phy1clk);
goto err_clk_phy;
}
- clk_enable(priv->phy1clk);
+ clk_prepare_enable(priv->phy1clk);
}
pdata->exit(pdev);
err_init:
if (priv->phy1clk) {
- clk_disable(priv->phy1clk);
+ clk_disable_unprepare(priv->phy1clk);
clk_put(priv->phy1clk);
}
err_clk_phy:
if (priv->ahbclk) {
- clk_disable(priv->ahbclk);
+ clk_disable_unprepare(priv->ahbclk);
clk_put(priv->ahbclk);
}
err_clk_ahb:
- clk_disable(priv->usbclk);
+ clk_disable_unprepare(priv->usbclk);
clk_put(priv->usbclk);
err_clk:
iounmap(hcd->regs);
usb_put_hcd(hcd);
platform_set_drvdata(pdev, NULL);
- clk_disable(priv->usbclk);
+ clk_disable_unprepare(priv->usbclk);
clk_put(priv->usbclk);
if (priv->ahbclk) {
- clk_disable(priv->ahbclk);
+ clk_disable_unprepare(priv->ahbclk);
clk_put(priv->ahbclk);
}
if (priv->phy1clk) {
- clk_disable(priv->phy1clk);
+ clk_disable_unprepare(priv->phy1clk);
clk_put(priv->phy1clk);
}