Fall back to PIO if DMA configuration failed.

Signed-off-by: Geert Uytterhoeven <[email protected]>
---
 drivers/spi/spi-rspi.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/spi/spi-rspi.c b/drivers/spi/spi-rspi.c
index fdbd46d0c570..94a99ec7d989 100644
--- a/drivers/spi/spi-rspi.c
+++ b/drivers/spi/spi-rspi.c
@@ -1190,10 +1190,8 @@ static int rspi_probe(struct platform_device *pdev)
        }
 
        ret = rspi_request_dma(rspi, pdev);
-       if (ret < 0) {
-               dev_err(&pdev->dev, "rspi_request_dma failed.\n");
-               goto error3;
-       }
+       if (ret < 0)
+               dev_warn(&pdev->dev, "DMA not available, using PIO\n");
 
        ret = devm_spi_register_master(&pdev->dev, master);
        if (ret < 0) {
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to