Skip to content

Commit 84a25d9

Browse files
Peter Ujfalusigregkh
authored andcommitted
tty: serial: tegra: 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 61b37b0 commit 84a25d9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/tty/serial/serial-tegra.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1122,8 +1122,7 @@ static int tegra_uart_dma_channel_allocate(struct tegra_uart_port *tup,
11221122
int ret;
11231123
struct dma_slave_config dma_sconfig;
11241124

1125-
dma_chan = dma_request_slave_channel_reason(tup->uport.dev,
1126-
dma_to_memory ? "rx" : "tx");
1125+
dma_chan = dma_request_chan(tup->uport.dev, dma_to_memory ? "rx" : "tx");
11271126
if (IS_ERR(dma_chan)) {
11281127
ret = PTR_ERR(dma_chan);
11291128
dev_err(tup->uport.dev,

0 commit comments

Comments
 (0)