[PATCH] fixup! video: Rockchip: Add VOP2 driver
Ahmad Fatoum
a.fatoum at pengutronix.de
Tue Oct 22 01:34:50 PDT 2024
video: Rockchip: add missing dma_alloc_coherent a device parameter
dma_alloc_coherent was recently changed to take a device parameter like
in Linux.
The VOP2 driver went upstream during the same time and is missing the
fixup.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
This should be squashed either into the DMA branch or the VOP2 branch,
whichever comes first.
---
drivers/video/rockchip/rockchip_drm_vop2.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/video/rockchip/rockchip_drm_vop2.c b/drivers/video/rockchip/rockchip_drm_vop2.c
index 3ab6fe97e0b0..3a1c951ec7e4 100644
--- a/drivers/video/rockchip/rockchip_drm_vop2.c
+++ b/drivers/video/rockchip/rockchip_drm_vop2.c
@@ -1634,8 +1634,9 @@ static int vop2_register_plane(struct vop2_video_port *vp, struct vop2_win *win)
win->dst.y2 = info->yres;
info->line_length = vp->line_length;
- info->screen_base = dma_alloc_writecombine(vp->line_length * vp->max_yres,
- &win->dma);
+ info->screen_base = dma_alloc_writecombine(DMA_DEVICE_BROKEN,
+ vp->line_length * vp->max_yres,
+ &win->dma);
if (!info->screen_base)
return -ENOMEM;
--
2.39.5
More information about the barebox
mailing list