projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
24fdaee
)
usb: cdns3: core: fix goto label for error path
author
Peter Chen
<peter.chen@nxp.com>
Thu, 26 Nov 2020 06:02:38 +0000
(14:02 +0800)
committer
Peter 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
patch
|
blob
|
history
diff --git
a/drivers/usb/cdns3/core.c
b/drivers/usb/cdns3/core.c
index
170deb3
..
039ab5d
100644
(file)
--- 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 err
3
;
+ goto err
4
;
}
}