Commit e887786a authored by Chao Xie's avatar Chao Xie Committed by Felipe Balbi

usb: gadget: mv_udc: 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 b33d74db
...@@ -1012,7 +1012,7 @@ static void udc_clock_enable(struct mv_udc *udc) ...@@ -1012,7 +1012,7 @@ static void udc_clock_enable(struct mv_udc *udc)
unsigned int i; unsigned int i;
for (i = 0; i < udc->clknum; i++) for (i = 0; i < udc->clknum; i++)
clk_enable(udc->clk[i]); clk_prepare_enable(udc->clk[i]);
} }
static void udc_clock_disable(struct mv_udc *udc) static void udc_clock_disable(struct mv_udc *udc)
...@@ -1020,7 +1020,7 @@ static void udc_clock_disable(struct mv_udc *udc) ...@@ -1020,7 +1020,7 @@ static void udc_clock_disable(struct mv_udc *udc)
unsigned int i; unsigned int i;
for (i = 0; i < udc->clknum; i++) for (i = 0; i < udc->clknum; i++)
clk_disable(udc->clk[i]); clk_disable_unprepare(udc->clk[i]);
} }
static void udc_stop(struct mv_udc *udc) static void udc_stop(struct mv_udc *udc)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment