spi/ti-qspi: Fix return from mmap path
authorSourav Poddar <sourav.poddar@ti.com>
Mon, 10 Mar 2014 10:30:42 +0000 (16:00 +0530)
committerMark Brown <broonie@linaro.org>
Mon, 10 Mar 2014 11:10:19 +0000 (11:10 +0000)
mmap resource requirement is only for memory mapped operations.
If the user does not populate mmap resource, dont call return,
instead we go on for normal spi mode operations.

Signed-off-by: Sourav Poddar <sourav.poddar@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/spi/spi-ti-qspi.c

index 3d09265b51335e2cefdf3d098ce177826b150674..66a4029ee0359706af380ae6bd11d4d5715b643c 100644 (file)
@@ -461,7 +461,6 @@ static int ti_qspi_probe(struct platform_device *pdev)
                if (res_mmap == NULL) {
                        dev_err(&pdev->dev,
                                "memory mapped resource not required\n");
-                       return -ENODEV;
                }
        }