summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-cadence-quadspi.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2020-10-09 17:01:22 +0200
committerMark Brown <broonie@kernel.org>2020-10-09 17:01:22 +0200
commit988731181359efd771ae967f94936906fa38868a (patch)
tree49b5aee659fe3686d1f40374ecd36136d0d2f836 /drivers/spi/spi-cadence-quadspi.c
parentMerge remote-tracking branch 'spi/for-5.9' into spi-linus (diff)
parentspi: cadence: Add SPI transfer delays (diff)
downloadlinux-988731181359efd771ae967f94936906fa38868a.tar.xz
linux-988731181359efd771ae967f94936906fa38868a.zip
Merge remote-tracking branch 'spi/for-5.10' into spi-next
Diffstat (limited to 'drivers/spi/spi-cadence-quadspi.c')
-rw-r--r--drivers/spi/spi-cadence-quadspi.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/spi/spi-cadence-quadspi.c b/drivers/spi/spi-cadence-quadspi.c
index c6795c684b16..40938cf3806d 100644
--- a/drivers/spi/spi-cadence-quadspi.c
+++ b/drivers/spi/spi-cadence-quadspi.c
@@ -1119,11 +1119,8 @@ static int cqspi_request_mmap_dma(struct cqspi_st *cqspi)
cqspi->rx_chan = dma_request_chan_by_mask(&mask);
if (IS_ERR(cqspi->rx_chan)) {
int ret = PTR_ERR(cqspi->rx_chan);
-
- if (ret != -EPROBE_DEFER)
- dev_err(&cqspi->pdev->dev, "No Rx DMA available\n");
cqspi->rx_chan = NULL;
- return ret;
+ return dev_err_probe(&cqspi->pdev->dev, ret, "No Rx DMA available\n");
}
init_completion(&cqspi->rx_dma_complete);