aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi_imx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi_imx.c b/drivers/spi/spi_imx.c
index 9010ef0385a8..9469564e6888 100644
--- a/drivers/spi/spi_imx.c
+++ b/drivers/spi/spi_imx.c
@@ -821,7 +821,7 @@ static int __devinit spi_imx_probe(struct platform_device *pdev)
821 } 821 }
822 822
823 spi_imx->irq = platform_get_irq(pdev, 0); 823 spi_imx->irq = platform_get_irq(pdev, 0);
824 if (spi_imx->irq <= 0) { 824 if (spi_imx->irq < 0) {
825 ret = -EINVAL; 825 ret = -EINVAL;
826 goto out_iounmap; 826 goto out_iounmap;
827 } 827 }