Skip to content

Commit 5144eea

Browse files
Peter Ujfalusixlnx-hyunkwon
authored andcommitted
drm: xlnx: Use dma_request_chan for DMA channel request
There is no need to use the of_dma_request_slave_channel() directly as dma_request_chan() is going to try to get the channel via OF as well. Signed-off-by: Peter Ujfalusi <[email protected]> Signed-off-by: Hyun Kwon <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 7cb4150 commit 5144eea

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/gpu/drm/xlnx/zynqmp_disp.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
#include <linux/dmaengine.h>
2929
#include <linux/module.h>
3030
#include <linux/of.h>
31-
#include <linux/of_dma.h>
3231
#include <linux/platform_device.h>
3332
#include <linux/pm_runtime.h>
3433
#include <linux/spinlock.h>
@@ -1316,8 +1315,7 @@ static int zynqmp_disp_layer_request_dma(struct zynqmp_disp *disp,
13161315

13171316
snprintf(dma_channel_name, sizeof(dma_channel_name),
13181317
"%s%u", dma_names[layer->id], i);
1319-
dma->chan = of_dma_request_slave_channel(disp->dev->of_node,
1320-
dma_channel_name);
1318+
dma->chan = dma_request_chan(disp->dev, dma_channel_name);
13211319
if (IS_ERR(dma->chan)) {
13221320
dev_err(disp->dev, "failed to request dma channel\n");
13231321
ret = PTR_ERR(dma->chan);

0 commit comments

Comments
 (0)