usb: dwc3: drd: Don't free non-existing irq
authorThinh Nguyen <Thinh.Nguyen@synopsys.com>
Mon, 30 Mar 2020 00:09:59 +0000 (17:09 -0700)
committerFelipe Balbi <balbi@kernel.org>
Tue, 5 May 2020 08:00:12 +0000 (11:00 +0300)
commit8cc6d55bc20016cc6d81628713114bd807a1e661
tree93987acaf83eb4b847a6cd0e32b27fd775a4fac8
parent31306821d87723d63f1be6908c7187719f282eff
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>
drivers/usb/dwc3/drd.c