Commit df1b0141 authored by Peter Ujfalusi's avatar Peter Ujfalusi Committed by Mark Brown

spi: s3c64xx: 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: default avatarPeter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: default avatarKrzysztof Kozlowski <krzk@kernel.org>
Acked-by: default avatarAndi Shyti <andi@etezian.org>
Link: https://lore.kernel.org/r/20191113094256.1108-8-peter.ujfalusi@ti.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 194e1d4b
...@@ -1154,15 +1154,13 @@ static int s3c64xx_spi_probe(struct platform_device *pdev) ...@@ -1154,15 +1154,13 @@ static int s3c64xx_spi_probe(struct platform_device *pdev)
if (!is_polling(sdd)) { if (!is_polling(sdd)) {
/* Acquire DMA channels */ /* Acquire DMA channels */
sdd->rx_dma.ch = dma_request_slave_channel_reason(&pdev->dev, sdd->rx_dma.ch = dma_request_chan(&pdev->dev, "rx");
"rx");
if (IS_ERR(sdd->rx_dma.ch)) { if (IS_ERR(sdd->rx_dma.ch)) {
dev_err(&pdev->dev, "Failed to get RX DMA channel\n"); dev_err(&pdev->dev, "Failed to get RX DMA channel\n");
ret = PTR_ERR(sdd->rx_dma.ch); ret = PTR_ERR(sdd->rx_dma.ch);
goto err_disable_io_clk; goto err_disable_io_clk;
} }
sdd->tx_dma.ch = dma_request_slave_channel_reason(&pdev->dev, sdd->tx_dma.ch = dma_request_chan(&pdev->dev, "tx");
"tx");
if (IS_ERR(sdd->tx_dma.ch)) { if (IS_ERR(sdd->tx_dma.ch)) {
dev_err(&pdev->dev, "Failed to get TX DMA channel\n"); dev_err(&pdev->dev, "Failed to get TX DMA channel\n");
ret = PTR_ERR(sdd->tx_dma.ch); ret = PTR_ERR(sdd->tx_dma.ch);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment