OSDN Git Service

dmaengine: Mark dma_request_slave_channel() deprecated
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Fri, 28 Aug 2020 11:05:07 +0000 (14:05 +0300)
committerVinod Koul <vkoul@kernel.org>
Thu, 3 Sep 2020 06:51:03 +0000 (12:21 +0530)
commit7547dbd3b198f309aaff54e3528898a8a196faff
tree4fc7dc876a09ed959c44e7fe2aefa2e70888d1e1
parent145fbd1e82e6654398ace321432e3a803b8a2be4
dmaengine: Mark dma_request_slave_channel() deprecated

New drivers should use dma_request_chan() instead
dma_request_slave_channel()

dma_request_slave_channel() is a simple wrapper for dma_request_chan()
eating up the error code for channel request failure and makes deferred
probing impossible.

Move the dma_request_slave_channel() into the header as inline function,
mark it as deprecated.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20200828110507.22407-1-peter.ujfalusi@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dmaengine.c
include/linux/dmaengine.h