[1/2] mmc: atmel-mci: Use dma_request_chan() directly for channel request
diff mbox series

Message ID 20191113093616.32474-2-peter.ujfalusi@ti.com
State Mainlined
Commit 5503301f0e564a02096d05c7919111c18c731b8a
Headers show
Series
  • mms: Use dma_request_chan() directly for channel request
Related show

Commit Message

Peter Ujfalusi Nov. 13, 2019, 9:36 a.m. UTC
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>
---
 drivers/mmc/host/atmel-mci.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Ludovic Desroches Nov. 13, 2019, 1:34 p.m. UTC | #1
On Wed, Nov 13, 2019 at 11:36:15AM +0200, Peter Ujfalusi wrote:
> 
> 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: Ludovic Desroches <ludovic.desroches@microchip.com>

Thanks
> ---
>  drivers/mmc/host/atmel-mci.c | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/drivers/mmc/host/atmel-mci.c b/drivers/mmc/host/atmel-mci.c
> index 34c992d87529..6f065bb5c55a 100644
> --- a/drivers/mmc/host/atmel-mci.c
> +++ b/drivers/mmc/host/atmel-mci.c
> @@ -2347,8 +2347,7 @@ static void atmci_cleanup_slot(struct atmel_mci_slot *slot,
>  
>  static int atmci_configure_dma(struct atmel_mci *host)
>  {
> -	host->dma.chan = dma_request_slave_channel_reason(&host->pdev->dev,
> -							"rxtx");
> +	host->dma.chan = dma_request_chan(&host->pdev->dev, "rxtx");
>  
>  	if (PTR_ERR(host->dma.chan) == -ENODEV) {
>  		struct mci_platform_data *pdata = host->pdev->dev.platform_data;
> -- 
> Peter
> 
> Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
> Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
> 
>

Patch
diff mbox series

diff --git a/drivers/mmc/host/atmel-mci.c b/drivers/mmc/host/atmel-mci.c
index 34c992d87529..6f065bb5c55a 100644
--- a/drivers/mmc/host/atmel-mci.c
+++ b/drivers/mmc/host/atmel-mci.c
@@ -2347,8 +2347,7 @@  static void atmci_cleanup_slot(struct atmel_mci_slot *slot,
 
 static int atmci_configure_dma(struct atmel_mci *host)
 {
-	host->dma.chan = dma_request_slave_channel_reason(&host->pdev->dev,
-							"rxtx");
+	host->dma.chan = dma_request_chan(&host->pdev->dev, "rxtx");
 
 	if (PTR_ERR(host->dma.chan) == -ENODEV) {
 		struct mci_platform_data *pdata = host->pdev->dev.platform_data;