Merge tag 'powerpc-4.9-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc...
[cascardo/linux.git] / arch / powerpc / platforms / 83xx / mpc832x_rdb.c
index 2ef03e7..0d6a62f 100644 (file)
@@ -89,7 +89,7 @@ static int __init of_fsl_spi_probe(char *type, char *compatible, u32 sysclk,
                        goto err;
 
                ret = of_irq_to_resource(np, 0, &res[1]);
-               if (ret == NO_IRQ)
+               if (!ret)
                        goto err;
 
                pdev = platform_device_alloc("mpc83xx_spi", i);