usb: cdns3: core: fix goto label for error path
authorPeter Chen <peter.chen@nxp.com>
Thu, 26 Nov 2020 06:02:38 +0000 (14:02 +0800)
committerPeter Chen <peter.chen@nxp.com>
Mon, 30 Nov 2020 05:48:32 +0000 (13:48 +0800)
The usb_role_switch_register has been already called, so if the
devm_request_irq has failed, it needs to call usb_role_switch_unregister.

Fixes: b1234e3b3b26 ("usb: cdns3: add runtime PM support")
Signed-off-by: Peter Chen <peter.chen@nxp.com>
drivers/usb/cdns3/core.c

index 170deb3..039ab5d 100644 (file)
@@ -553,7 +553,7 @@ static int cdns3_probe(struct platform_device *pdev)
 
                if (ret) {
                        dev_err(cdns->dev, "couldn't register wakeup irq handler\n");
-                       goto err3;
+                       goto err4;
                }
        }