mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
i2c: qup: Use dma_request_chan() directly for channel request
dma_request_slave_channel_reason() is: #define dma_request_slave_channel_reason(dev, name) \ 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
a2b0e390d2
commit
67d7630f0e
1 changed files with 2 additions and 2 deletions
|
@ -628,7 +628,7 @@ static int qup_i2c_req_dma(struct qup_i2c_dev *qup)
|
|||
int err;
|
||||
|
||||
if (!qup->btx.dma) {
|
||||
qup->btx.dma = dma_request_slave_channel_reason(qup->dev, "tx");
|
||||
qup->btx.dma = dma_request_chan(qup->dev, "tx");
|
||||
if (IS_ERR(qup->btx.dma)) {
|
||||
err = PTR_ERR(qup->btx.dma);
|
||||
qup->btx.dma = NULL;
|
||||
|
@ -638,7 +638,7 @@ static int qup_i2c_req_dma(struct qup_i2c_dev *qup)
|
|||
}
|
||||
|
||||
if (!qup->brx.dma) {
|
||||
qup->brx.dma = dma_request_slave_channel_reason(qup->dev, "rx");
|
||||
qup->brx.dma = dma_request_chan(qup->dev, "rx");
|
||||
if (IS_ERR(qup->brx.dma)) {
|
||||
dev_err(qup->dev, "\n rx channel not available");
|
||||
err = PTR_ERR(qup->brx.dma);
|
||||
|
|
Loading…
Reference in a new issue