spi: fsl: use platform_get_irq() instead of of_irq_to_resource()
[sfrench/cifs-2.6.git] / drivers / spi / spi-fsl-spi.c
index d0ad9709f4a6cb52c57778e19b87854adb8655f2..fb4159ad6bf6a8e5729f79baf27f0f68078eeff5 100644 (file)
@@ -746,9 +746,9 @@ static int of_fsl_spi_probe(struct platform_device *ofdev)
        if (ret)
                goto err;
 
-       irq = of_irq_to_resource(np, 0, NULL);
-       if (irq <= 0) {
-               ret = -EINVAL;
+       irq = platform_get_irq(ofdev, 0);
+       if (irq < 0) {
+               ret = irq;
                goto err;
        }