Message ID | 1416081030-28260-2-git-send-email-dbaryshkov@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> writes: > Change clk_enable/disable() calls to clk_prepare_enable() and > clk_disable_unrepapre(). No, there are already patches for this in Felipe's next tree : git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git testing/next Cheers. -- Robert
diff --git a/drivers/usb/gadget/udc/pxa27x_udc.c b/drivers/usb/gadget/udc/pxa27x_udc.c index 4868369..e03c61d 100644 --- a/drivers/usb/gadget/udc/pxa27x_udc.c +++ b/drivers/usb/gadget/udc/pxa27x_udc.c @@ -1701,7 +1701,7 @@ static void udc_disable(struct pxa_udc *udc) udc_writel(udc, UDCICR1, 0); udc_clear_mask_UDCCR(udc, UDCCR_UDE); - clk_disable(udc->clk); + clk_disable_unprepare(udc->clk); ep0_idle(udc); udc->gadget.speed = USB_SPEED_UNKNOWN; @@ -1761,7 +1761,7 @@ static void udc_enable(struct pxa_udc *udc) udc_writel(udc, UDCICR1, 0); udc_clear_mask_UDCCR(udc, UDCCR_UDE); - clk_enable(udc->clk); + clk_prepare_enable(udc->clk); ep0_idle(udc); udc->gadget.speed = USB_SPEED_FULL;
Change clk_enable/disable() calls to clk_prepare_enable() and clk_disable_unrepapre(). Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com> --- drivers/usb/gadget/udc/pxa27x_udc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)