提交 6aabf9d0 编写于 作者: N Niklas Söderlund 提交者: Wolfram Sang

i2c: rcar: use dma_request_chan()

New drivers should not use dma_request_slave_channel_reason() but
dma_request_chan(). The former is a macro to the later so this change do
not effect the driver in any way.
Reported-by: NArnd Bergmann <arnd@arndb.de>
Signed-off-by: NNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: NWolfram Sang <wsa@the-dreams.de>
上级 ea8ea737
...@@ -623,7 +623,7 @@ static struct dma_chan *rcar_i2c_request_dma_chan(struct device *dev, ...@@ -623,7 +623,7 @@ static struct dma_chan *rcar_i2c_request_dma_chan(struct device *dev,
char *chan_name = dir == DMA_MEM_TO_DEV ? "tx" : "rx"; char *chan_name = dir == DMA_MEM_TO_DEV ? "tx" : "rx";
int ret; int ret;
chan = dma_request_slave_channel_reason(dev, chan_name); chan = dma_request_chan(dev, chan_name);
if (IS_ERR(chan)) { if (IS_ERR(chan)) {
ret = PTR_ERR(chan); ret = PTR_ERR(chan);
dev_dbg(dev, "request_channel failed for %s (%d)\n", dev_dbg(dev, "request_channel failed for %s (%d)\n",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册