diff options
author | Peter Chen <peter.chen@nxp.com> | 2020-11-26 07:02:38 +0100 |
---|---|---|
committer | Peter Chen <peter.chen@nxp.com> | 2020-11-30 06:48:32 +0100 |
commit | 6b8137517e70f6e96d0251a98930b1f29d0be161 (patch) | |
tree | 254587ebde7ceb53ed4231f080186caddd1b434b /drivers/usb/cdns3 | |
parent | usb: cdns3: gadget: clear trb->length as zero after preparing every trb (diff) | |
download | linux-6b8137517e70f6e96d0251a98930b1f29d0be161.tar.xz linux-6b8137517e70f6e96d0251a98930b1f29d0be161.zip |
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/cdns3')
-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; } } |