Skip to content

Commit 6b81375

Browse files
author
Peter Chen
committed
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: b1234e3 ("usb: cdns3: add runtime PM support") Signed-off-by: Peter Chen <peter.chen@nxp.com>
1 parent 24fdaee commit 6b81375

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/usb/cdns3/core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ static int cdns3_probe(struct platform_device *pdev)
553553

554554
if (ret) {
555555
dev_err(cdns->dev, "couldn't register wakeup irq handler\n");
556-
goto err3;
556+
goto err4;
557557
}
558558
}
559559

0 commit comments

Comments
 (0)