diff options
author | Peter Chen <peter.chen@nxp.com> | 2020-11-26 14:02:38 +0800 |
---|---|---|
committer | Peter Chen <peter.chen@nxp.com> | 2020-11-30 13:48:32 +0800 |
commit | 6b8137517e70f6e96d0251a98930b1f29d0be161 (patch) | |
tree | 254587ebde7ceb53ed4231f080186caddd1b434b /drivers/usb | |
parent | 24fdaeeb294c14ea743ec99ada92380c060a428a (diff) |
usb: cdns3: core: fix goto label for error path
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/cdns3/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/cdns3/core.c b/drivers/usb/cdns3/core.c index 170deb3eacf0..039ab5d2435e 100644 --- a/drivers/usb/cdns3/core.c +++ b/drivers/usb/cdns3/core.c @@ -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; } } |