diff options
author | Sourav Poddar <sourav.poddar@ti.com> | 2014-03-10 06:30:42 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-03-10 07:10:19 -0400 |
commit | 9304f51e5f3e1365860968bce168d904f3e31bd3 (patch) | |
tree | a53ee5be571a71826b34d1b62e01f081328f1b8f /drivers/spi | |
parent | 38dbfb59d1175ef458d006556061adeaa8751b72 (diff) |
spi/ti-qspi: Fix return from mmap path
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>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-ti-qspi.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/spi/spi-ti-qspi.c b/drivers/spi/spi-ti-qspi.c index 3d09265b5133..66a4029ee035 100644 --- a/drivers/spi/spi-ti-qspi.c +++ b/drivers/spi/spi-ti-qspi.c | |||
@@ -461,7 +461,6 @@ static int ti_qspi_probe(struct platform_device *pdev) | |||
461 | if (res_mmap == NULL) { | 461 | if (res_mmap == NULL) { |
462 | dev_err(&pdev->dev, | 462 | dev_err(&pdev->dev, |
463 | "memory mapped resource not required\n"); | 463 | "memory mapped resource not required\n"); |
464 | return -ENODEV; | ||
465 | } | 464 | } |
466 | } | 465 | } |
467 | 466 | ||