projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e509895
)
spi: atmel: Drop unused variable
author
Tudor Ambarus
<tudor.ambarus@microchip.com>
Thu, 18 Feb 2021 13:28:40 +0000
(15:28 +0200)
committer
Mark Brown
<broonie@kernel.org>
Wed, 10 Mar 2021 12:46:53 +0000
(12:46 +0000)
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>
drivers/spi/spi-atmel.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-atmel.c
b/drivers/spi/spi-atmel.c
index f429436082afae7ceae481bf04c10b447e851f66..7cd5fe00dfc1130f12bb2155f2d46f744ddad799 100644
(file)
--- 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);