Skip to content

Commit 19b6ecf

Browse files
Peter Ujfalusigregkh
authored andcommitted
tty: serial: msm_serial: Use dma_request_chan() directly for channel request
dma_request_slave_channel_reason() is: #define dma_request_slave_channel_reason(dev, name) \ dma_request_chan(dev, name) Signed-off-by: Peter Ujfalusi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 84a25d9 commit 19b6ecf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/tty/serial/msm_serial.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ static void msm_request_tx_dma(struct msm_port *msm_port, resource_size_t base)
301301
dma = &msm_port->tx_dma;
302302

303303
/* allocate DMA resources, if available */
304-
dma->chan = dma_request_slave_channel_reason(dev, "tx");
304+
dma->chan = dma_request_chan(dev, "tx");
305305
if (IS_ERR(dma->chan))
306306
goto no_tx;
307307

@@ -344,7 +344,7 @@ static void msm_request_rx_dma(struct msm_port *msm_port, resource_size_t base)
344344
dma = &msm_port->rx_dma;
345345

346346
/* allocate DMA resources, if available */
347-
dma->chan = dma_request_slave_channel_reason(dev, "rx");
347+
dma->chan = dma_request_chan(dev, "rx");
348348
if (IS_ERR(dma->chan))
349349
goto no_rx;
350350

0 commit comments

Comments
 (0)