OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30eaed0
)
spi-imx: correct check for platform_get_irq failing
author
Uwe Kleine-König
<u.kleine-koenig@pengutronix.de>
Sun, 13 Dec 2009 07:58:13 +0000
(
00:58
-0700)
committer
Grant Likely
<grant.likely@secretlab.ca>
Sun, 13 Dec 2009 07:58:13 +0000
(
00:58
-0700)
platform_get_irq returns -ENXIO if there is no entry. So ensure
return value is greater than zero instead of non-zero.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/spi_imx.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi_imx.c
b/drivers/spi/spi_imx.c
index
8ffa48c
..
c96804f
100644
(file)
--- a/
drivers/spi/spi_imx.c
+++ b/
drivers/spi/spi_imx.c
@@
-555,7
+555,7
@@
static int __init spi_imx_probe(struct platform_device *pdev)
}
spi_imx->irq = platform_get_irq(pdev, 0);
- if (
!spi_imx->irq
) {
+ if (
spi_imx->irq <= 0
) {
ret = -EINVAL;
goto out_iounmap;
}