diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2019-11-13 12:22:34 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2019-11-14 23:41:43 +0300 |
commit | efa42b5e3ec76e401dc3f4d5ab3e0405cad9ac75 (patch) | |
tree | 2b34e46d050f3cd76c1a2a960348c52b27d2c71c /drivers/i2c/busses/i2c-sh_mobile.c | |
parent | 67d7630f0eae4547d8224a9f5c8b66dc69eb7e83 (diff) | |
download | linux-efa42b5e3ec76e401dc3f4d5ab3e0405cad9ac75.tar.xz |
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>
Diffstat (limited to 'drivers/i2c/busses/i2c-sh_mobile.c')
-rw-r--r-- | drivers/i2c/busses/i2c-sh_mobile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-sh_mobile.c b/drivers/i2c/busses/i2c-sh_mobile.c index 8777af4c695e..82b3b795e0bd 100644 --- a/drivers/i2c/busses/i2c-sh_mobile.c +++ b/drivers/i2c/busses/i2c-sh_mobile.c @@ -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)); |