crypto: qce/dma - Use dma_request_chan() directly for channel request
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Wed, 13 Nov 2019 09:09:47 +0000 (11:09 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Nov 2019 10:48:35 +0000 (18:48 +0800)
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: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qce/dma.c

index 0984a719144d1cf5df0db246a030ffbffc993aac..40a59214d2e1668d3140432b2bb944700380f64c 100644 (file)
@@ -12,11 +12,11 @@ int qce_dma_request(struct device *dev, struct qce_dma_data *dma)
 {
        int ret;
 
-       dma->txchan = dma_request_slave_channel_reason(dev, "tx");
+       dma->txchan = dma_request_chan(dev, "tx");
        if (IS_ERR(dma->txchan))
                return PTR_ERR(dma->txchan);
 
-       dma->rxchan = dma_request_slave_channel_reason(dev, "rx");
+       dma->rxchan = dma_request_chan(dev, "rx");
        if (IS_ERR(dma->rxchan)) {
                ret = PTR_ERR(dma->rxchan);
                goto error_rx;