diff options
author | Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> | 2016-05-19 04:29:17 -0400 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2016-05-26 14:43:06 -0400 |
commit | 6aabf9d01facdcb6835272995b003956a9dabea0 (patch) | |
tree | 23e1fd701bf3e8361518757ba0e141698be153de | |
parent | ea8ea737c46cffa5d0ee74309f81e55a7e5e9c2a (diff) |
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: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
-rw-r--r-- | drivers/i2c/busses/i2c-rcar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-rcar.c b/drivers/i2c/busses/i2c-rcar.c index 9aca1b4e2d8d..52407f3c9e1c 100644 --- a/drivers/i2c/busses/i2c-rcar.c +++ b/drivers/i2c/busses/i2c-rcar.c | |||
@@ -623,7 +623,7 @@ static struct dma_chan *rcar_i2c_request_dma_chan(struct device *dev, | |||
623 | char *chan_name = dir == DMA_MEM_TO_DEV ? "tx" : "rx"; | 623 | char *chan_name = dir == DMA_MEM_TO_DEV ? "tx" : "rx"; |
624 | int ret; | 624 | int ret; |
625 | 625 | ||
626 | chan = dma_request_slave_channel_reason(dev, chan_name); | 626 | chan = dma_request_chan(dev, chan_name); |
627 | if (IS_ERR(chan)) { | 627 | if (IS_ERR(chan)) { |
628 | ret = PTR_ERR(chan); | 628 | ret = PTR_ERR(chan); |
629 | dev_dbg(dev, "request_channel failed for %s (%d)\n", | 629 | dev_dbg(dev, "request_channel failed for %s (%d)\n", |