dwc3-msm: Fix panic issue during unbind of msm_dwc3
During unbind of msm_dwc3, dwc3 core device will be removed due
to which dwc's ipc_log_buf will be freed. Hence remove dbg_event
after removing dwc3 core device as it access ipc_log_buf, which
is already freed to avoid panic.
Change-Id: I7e3d071f454afff4af900f07862327342842679f
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
diff --git a/drivers/usb/dwc3/dwc3-msm.c b/drivers/usb/dwc3/dwc3-msm.c
index 810546a..1cab2ca 100644
--- a/drivers/usb/dwc3/dwc3-msm.c
+++ b/drivers/usb/dwc3/dwc3-msm.c
@@ -3707,7 +3707,6 @@
mdwc->hs_phy->flags &= ~PHY_HOST_MODE;
of_platform_depopulate(&pdev->dev);
- dbg_event(0xFF, "Remov put", 0);
pm_runtime_disable(mdwc->dev);
pm_runtime_barrier(mdwc->dev);
pm_runtime_put_sync(mdwc->dev);