From: Mark Brown broonie@linaro.org
Systems with the common clock API need clk_prepare() as well as the enable step.
Signed-off-by: Mark Brown broonie@linaro.org --- drivers/usb/phy/phy-nop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/phy/phy-nop.c b/drivers/usb/phy/phy-nop.c index f52b7f8..6988c15 100644 --- a/drivers/usb/phy/phy-nop.c +++ b/drivers/usb/phy/phy-nop.c @@ -80,7 +80,7 @@ static int nop_init(struct usb_phy *phy) }
if (!IS_ERR(nop->clk)) - clk_enable(nop->clk); + clk_prepare_enable(nop->clk);
if (!IS_ERR(nop->reset)) { /* De-assert RESET */ @@ -102,7 +102,7 @@ static void nop_shutdown(struct usb_phy *phy) }
if (!IS_ERR(nop->clk)) - clk_disable(nop->clk); + clk_disable_unprepare(nop->clk);
if (!IS_ERR(nop->vcc)) { if (regulator_disable(nop->vcc))