diff options
author | Geert Uytterhoeven <geert+renesas@glider.be> | 2014-06-02 09:38:08 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-06-02 10:49:33 -0400 |
commit | 27e105a6006b8ce1b55709c5e24f63959981475d (patch) | |
tree | 3f14f20e108d59c73c8757aa4e33bc2e12ccd3b1 /drivers/spi | |
parent | 6837b8e91d2a080293c30d5fe42d9692390091fa (diff) |
spi: rspi: Don't consider DMA configuration failures fatal
Fall back to PIO if DMA configuration failed.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-rspi.c | 6 |
1 files 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) | |||
1190 | } | 1190 | } |
1191 | 1191 | ||
1192 | ret = rspi_request_dma(rspi, pdev); | 1192 | ret = rspi_request_dma(rspi, pdev); |
1193 | if (ret < 0) { | 1193 | if (ret < 0) |
1194 | dev_err(&pdev->dev, "rspi_request_dma failed.\n"); | 1194 | dev_warn(&pdev->dev, "DMA not available, using PIO\n"); |
1195 | goto error3; | ||
1196 | } | ||
1197 | 1195 | ||
1198 | ret = devm_spi_register_master(&pdev->dev, master); | 1196 | ret = devm_spi_register_master(&pdev->dev, master); |
1199 | if (ret < 0) { | 1197 | if (ret < 0) { |