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:
61f4d6b
)
i2c: imx: propagate irq error code in probe
author
Wolfram Sang
<wsa@the-dreams.de>
Thu, 12 Dec 2013 21:51:31 +0000
(22:51 +0100)
committer
Wolfram Sang
<wsa@the-dreams.de>
Fri, 3 Jan 2014 16:40:38 +0000
(17:40 +0100)
smatch rightfully says:
drivers/i2c/busses/i2c-imx.c:610 i2c_imx_probe() info: why not propagate 'irq' from platform_get_irq() instead of (-2)?
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-imx.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-imx.c
b/drivers/i2c/busses/i2c-imx.c
index d0cfbb4cb9643498540799281399cd1b314b91e3..db895fb22e652f8b31bc25473fd0f26115b9ff01 100644
(file)
--- a/
drivers/i2c/busses/i2c-imx.c
+++ b/
drivers/i2c/busses/i2c-imx.c
@@
-607,7
+607,7
@@
static int i2c_imx_probe(struct platform_device *pdev)
irq = platform_get_irq(pdev, 0);
if (irq < 0) {
dev_err(&pdev->dev, "can't get irq number\n");
- return
-ENOENT
;
+ return
irq
;
}
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);