From: Thomas Zimmermann Date: Mon, 13 Mar 2023 15:51:18 +0000 (+0100) Subject: drm/atmel-hlcdc: Use GEM DMA fbdev emulation X-Git-Tag: v6.6.17~3937^2~23^2~650 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b3fec11d0dbf43d0b3df11ca71687e25a5698ce4;p=platform%2Fkernel%2Flinux-rpi.git drm/atmel-hlcdc: Use GEM DMA fbdev emulation Use the fbdev emulation that is optimized for DMA helpers. Avoids possible shadow buffering and makes the code simpler. Signed-off-by: Thomas Zimmermann Reviewed-by: Javier Martinez Canillas Acked-by: Sam Ravnborg Link: https://patchwork.freedesktop.org/patch/msgid/20230313155138.20584-6-tzimmermann@suse.de --- diff --git a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c index 4e806b0..2960356 100644 --- a/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c +++ b/drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_dc.c @@ -19,7 +19,7 @@ #include #include #include -#include +#include #include #include #include @@ -760,7 +760,7 @@ static int atmel_hlcdc_dc_drm_probe(struct platform_device *pdev) if (ret) goto err_unload; - drm_fbdev_generic_setup(ddev, 24); + drm_fbdev_dma_setup(ddev, 24); return 0;