projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8676372
)
usb: mtu3: fix error return code in ssusb_gadget_init()
author
Chunfeng Yun
<chunfeng.yun@mediatek.com>
Fri, 13 Oct 2017 09:10:37 +0000
(17:10 +0800)
committer
Felipe Balbi
<felipe.balbi@linux.intel.com>
Thu, 19 Oct 2017 07:38:10 +0000
(10:38 +0300)
When failing to get IRQ number, platform_get_irq() may return
-EPROBE_DEFER, but we ignore it and always return -ENODEV,
so fix it.
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/mtu3/mtu3_core.c
patch
|
blob
|
history
diff --git
a/drivers/usb/mtu3/mtu3_core.c
b/drivers/usb/mtu3/mtu3_core.c
index 99c65b0788ff935add8c2d860ab6be0d177b6e84..947579842ad788cd8725b63ded83695908bf1631 100644
(file)
--- a/
drivers/usb/mtu3/mtu3_core.c
+++ b/
drivers/usb/mtu3/mtu3_core.c
@@
-774,9
+774,9
@@
int ssusb_gadget_init(struct ssusb_mtk *ssusb)
return -ENOMEM;
mtu->irq = platform_get_irq(pdev, 0);
- if (mtu->irq <
=
0) {
+ if (mtu->irq < 0) {
dev_err(dev, "fail to get irq number\n");
- return
-ENODEV
;
+ return
mtu->irq
;
}
dev_info(dev, "irq %d\n", mtu->irq);