mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-14 10:56:08 +07:00
usb: dwc3: drd: Don't free non-existing irq
If the driver is configured to use DRD role-switch, it's not OTG. There won't be OTG irq to free. Check for dwc->otg_irq before freeing it. Signed-off-by: Thinh Nguyen <thinhn@synopsys.com> Signed-off-by: Felipe Balbi <balbi@kernel.org>
This commit is contained in:
parent
31306821d8
commit
8cc6d55bc2
@ -653,6 +653,6 @@ void dwc3_drd_exit(struct dwc3 *dwc)
|
||||
break;
|
||||
}
|
||||
|
||||
if (!dwc->edev)
|
||||
if (dwc->otg_irq)
|
||||
free_irq(dwc->otg_irq, dwc);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user