Przeglądaj źródła

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>
Sourav Poddar 11 lat temu
rodzic
commit
9304f51e5f
1 zmienionych plików z 0 dodań i 1 usunięć
  1. 0 1
      drivers/spi/spi-ti-qspi.c

+ 0 - 1
drivers/spi/spi-ti-qspi.c

@@ -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;
 		}
 	}