Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dmaengine: Replace dma_request_slave_channel() by dma_request_chan()

Replace dma_request_slave_channel() by dma_request_chan() as suggested
since the former is deprecated.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20250205145757.889247-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Andy Shevchenko and committed by
Vinod Koul
31d43141 2014c95a

+4 -5
+2 -3
drivers/dma/imx-sdma.c
··· 1459 1459 * dmatest, thus create 'struct imx_dma_data mem_data' for this case. 1460 1460 * Please note in any other slave case, you have to setup chan->private 1461 1461 * with 'struct imx_dma_data' in your own filter function if you want to 1462 - * request dma channel by dma_request_channel() rather than 1463 - * dma_request_slave_channel(). Othwise, 'MEMCPY in case?' will appear 1464 - * to warn you to correct your filter function. 1462 + * request DMA channel by dma_request_channel(), otherwise, 'MEMCPY in 1463 + * case?' will appear to warn you to correct your filter function. 1465 1464 */ 1466 1465 if (!data) { 1467 1466 dev_dbg(sdmac->sdma->dev, "MEMCPY in case?\n");
+2 -2
include/linux/dmaengine.h
··· 1639 1639 { 1640 1640 struct dma_chan *chan; 1641 1641 1642 - chan = dma_request_slave_channel(dev, name); 1643 - if (chan) 1642 + chan = dma_request_chan(dev, name); 1643 + if (!IS_ERR(chan)) 1644 1644 return chan; 1645 1645 1646 1646 if (!fn || !fn_param)