Commit 9304f51e authored by Sourav Poddar's avatar Sourav Poddar Committed by Mark Brown

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: default avatarSourav Poddar <sourav.poddar@ti.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 38dbfb59
...@@ -461,7 +461,6 @@ static int ti_qspi_probe(struct platform_device *pdev) ...@@ -461,7 +461,6 @@ static int ti_qspi_probe(struct platform_device *pdev)
if (res_mmap == NULL) { if (res_mmap == NULL) {
dev_err(&pdev->dev, dev_err(&pdev->dev,
"memory mapped resource not required\n"); "memory mapped resource not required\n");
return -ENODEV;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment