Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;
		}
	}