There is a call to clk_disable a few lines before the goto err_alloc_ep_context. The clk goes not get enabled anywhere after that so this is not required. This patch fixes the bug by removing the deinit and clk_disable after the goto statement. Signed-off-by: Himangi Saraogi <himangi774@xxxxxxxxx> --- drivers/usb/gadget/mv_u3d_core.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/usb/gadget/mv_u3d_core.c b/drivers/usb/gadget/mv_u3d_core.c index 1624871..c6db4a8 100644 --- a/drivers/usb/gadget/mv_u3d_core.c +++ b/drivers/usb/gadget/mv_u3d_core.c @@ -1980,9 +1980,6 @@ err_alloc_trb_pool: dma_free_coherent(&dev->dev, u3d->ep_context_size, u3d->ep_context, u3d->ep_context_dma); err_alloc_ep_context: - if (pdata->phy_deinit) - pdata->phy_deinit(u3d->phy_regs); - clk_disable(u3d->clk); err_u3d_enable: iounmap(u3d->cap_regs); err_map_cap_regs: -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html