spi: atmel: Use dma_request_chan() directly for channel request
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Wed, 13 Nov 2019 09:42:49 +0000 (11:42 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 15 Nov 2019 12:13:22 +0000 (12:13 +0000)
dma_request_slave_channel_reason() is:
#define dma_request_slave_channel_reason(dev, name) \
dma_request_chan(dev, name)

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Link: https://lore.kernel.org/r/20191113094256.1108-3-peter.ujfalusi@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-atmel.c

index d88e2aa..d692cc3 100644 (file)
@@ -512,7 +512,7 @@ static int atmel_spi_configure_dma(struct spi_master *master,
        dma_cap_zero(mask);
        dma_cap_set(DMA_SLAVE, mask);
 
-       master->dma_tx = dma_request_slave_channel_reason(dev, "tx");
+       master->dma_tx = dma_request_chan(dev, "tx");
        if (IS_ERR(master->dma_tx)) {
                err = PTR_ERR(master->dma_tx);
                if (err == -EPROBE_DEFER) {