summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorTudor Ambarus <tudor.ambarus@microchip.com>2021-02-18 15:28:40 +0200
committerMark Brown <broonie@kernel.org>2021-03-10 12:46:53 +0000
commit120a9e8155cbc0f50315f79a18cb03a1ee6f3211 (patch)
tree6f5ca3ae72369329b60fc80a4c65e2d8398148b0 /drivers
parente50989527faeafb79f45a0f7529ba8e01dff1fff (diff)
downloadlinux-stable-120a9e8155cbc0f50315f79a18cb03a1ee6f3211.tar.gz
linux-stable-120a9e8155cbc0f50315f79a18cb03a1ee6f3211.tar.bz2
linux-stable-120a9e8155cbc0f50315f79a18cb03a1ee6f3211.zip
spi: atmel: Drop unused variable
The DMA cap mask is no longer used since: commit 7758e390699f ("spi: atmel: remove compat for non DT board when requesting dma chan") Drop it now. Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com> Link: https://lore.kernel.org/r/20210218132840.131898-1-tudor.ambarus@microchip.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/spi/spi-atmel.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/spi/spi-atmel.c b/drivers/spi/spi-atmel.c
index f429436082af..7cd5fe00dfc1 100644
--- a/drivers/spi/spi-atmel.c
+++ b/drivers/spi/spi-atmel.c
@@ -506,10 +506,6 @@ static int atmel_spi_configure_dma(struct spi_master *master,
struct device *dev = &as->pdev->dev;
int err;
- dma_cap_mask_t mask;
- dma_cap_zero(mask);
- dma_cap_set(DMA_SLAVE, mask);
-
master->dma_tx = dma_request_chan(dev, "tx");
if (IS_ERR(master->dma_tx)) {
err = PTR_ERR(master->dma_tx);