mirror of https://gitee.com/openkylin/linux.git
i2c: sh_mobile: Use dma_request_chan() directly for channel request
dma_request_slave_channel_reason() is: dma_request_chan(dev, name) Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Reviewed-by: Vinod Koul <vkoul@kernel.org> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
This commit is contained in:
parent
67d7630f0e
commit
efa42b5e3e
|
@ -486,7 +486,7 @@ static struct dma_chan *sh_mobile_i2c_request_dma_chan(struct device *dev,
|
|||
char *chan_name = dir == DMA_MEM_TO_DEV ? "tx" : "rx";
|
||||
int ret;
|
||||
|
||||
chan = dma_request_slave_channel_reason(dev, chan_name);
|
||||
chan = dma_request_chan(dev, chan_name);
|
||||
if (IS_ERR(chan)) {
|
||||
dev_dbg(dev, "request_channel failed for %s (%ld)\n", chan_name,
|
||||
PTR_ERR(chan));
|
||||
|
|
Loading…
Reference in New Issue