MLK-23587-2 usb: dwc3: drd: don't free_irq for role switch

As role switch class does not use otg irq like edev, so don't
do free irq for it.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Acked-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
This commit is contained in:
Li Jun 2020-03-14 15:20:17 +08:00
parent 24b9a59b32
commit fd263a3edd
1 changed files with 1 additions and 1 deletions

View File

@ -604,6 +604,6 @@ void dwc3_drd_exit(struct dwc3 *dwc)
break;
}
if (!dwc->edev)
if (!dwc->edev && !dwc->role_switch)
free_irq(dwc->otg_irq, dwc);
}