diff mbox

spi_imx.c: correct the test on platform_get_irq() return value

Message ID 1294410361-9092-1-git-send-email-richard.genoud@gmail.com (mailing list archive)
State Superseded, archived
Headers show

Commit Message

Richard Genoud Jan. 7, 2011, 2:26 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/spi/spi_imx.c b/drivers/spi/spi_imx.c
index 55a38e2..793ae99 100644
--- a/drivers/spi/spi_imx.c
+++ b/drivers/spi/spi_imx.c
@@ -847,7 +847,7 @@  static int __devinit spi_imx_probe(struct platform_device *pdev)
 	}
 
 	spi_imx->irq = platform_get_irq(pdev, 0);
-	if (spi_imx->irq <= 0) {
+	if (spi_imx->irq < 0) {
 		ret = -EINVAL;
 		goto out_iounmap;
 	}