diff options
-rw-r--r-- | drivers/spi/spi_imx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi_imx.c b/drivers/spi/spi_imx.c index 8ffa48ce570c..c96804f62052 100644 --- 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) | |||
555 | } | 555 | } |
556 | 556 | ||
557 | spi_imx->irq = platform_get_irq(pdev, 0); | 557 | spi_imx->irq = platform_get_irq(pdev, 0); |
558 | if (!spi_imx->irq) { | 558 | if (spi_imx->irq <= 0) { |
559 | ret = -EINVAL; | 559 | ret = -EINVAL; |
560 | goto out_iounmap; | 560 | goto out_iounmap; |
561 | } | 561 | } |