spi/fsl-espi: fix the return value judgment of irq_of_parse_and_map.
authorHou Zhiqiang <b48286@freescale.com>
Wed, 11 Dec 2013 05:09:40 +0000 (13:09 +0800)
committerMark Brown <broonie@linaro.org>
Wed, 11 Dec 2013 11:06:53 +0000 (11:06 +0000)
Signed-off-by: Hou Zhiqiang <b48286@freescale.com>
Acked-by: Grant Likely <grant.likely@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-fsl-espi.c

index 80d8f40f7e0553d600f1e36b018daa7fae275a64..8106006cdc39e5da4dae382122e5acbd19d1699b 100644 (file)
@@ -705,7 +705,7 @@ static int of_fsl_espi_probe(struct platform_device *ofdev)
                goto err;
 
        irq = irq_of_parse_and_map(np, 0);
-       if (!ret) {
+       if (!irq) {
                ret = -EINVAL;
                goto err;
        }
This page took 0.053917 seconds and 5 git commands to generate.