Commit 6b813751 authored by Peter Chen's avatar Peter Chen

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: b1234e3b ("usb: cdns3: add runtime PM support")
Signed-off-by: default avatarPeter Chen <peter.chen@nxp.com>
parent 24fdaeeb
......@@ -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;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment