Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e3f1dbd2 authored by Chao Xie's avatar Chao Xie Committed by Felipe Balbi
Browse files

usb: otg: mv_otg: fix the clk APIs



the clock common driver changes, and arch-mmp will make use of
the common clock driver instead of its own.
So for enable clock.
first prepare the clock
then enable the clock.

for disable clock
first disable the clock
then unprepare the clock

Signed-off-by: default avatarChao Xie <chao.xie@marvell.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent e0b64ce6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -240,7 +240,7 @@ static void otg_clock_enable(struct mv_otg *mvotg)
	unsigned int i;

	for (i = 0; i < mvotg->clknum; i++)
		clk_enable(mvotg->clk[i]);
		clk_prepare_enable(mvotg->clk[i]);
}

static void otg_clock_disable(struct mv_otg *mvotg)
@@ -248,7 +248,7 @@ static void otg_clock_disable(struct mv_otg *mvotg)
	unsigned int i;

	for (i = 0; i < mvotg->clknum; i++)
		clk_disable(mvotg->clk[i]);
		clk_disable_unprepare(mvotg->clk[i]);
}

static int mv_otg_enable_internal(struct mv_otg *mvotg)