From: Thomas Zimmermann Date: Mon, 13 Mar 2023 15:51:15 +0000 (+0100) Subject: arm/hdlcd: Use GEM DMA fbdev emulation X-Git-Tag: v6.4-rc1~162^2~22^2~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9ff7705fe35ccdb02d7d32694942afe8531dfba6;p=thirdparty%2Fkernel%2Flinux.git arm/hdlcd: 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 Link: https://patchwork.freedesktop.org/patch/msgid/20230313155138.20584-3-tzimmermann@suse.de --- diff --git a/drivers/gpu/drm/arm/hdlcd_drv.c b/drivers/gpu/drm/arm/hdlcd_drv.c index e3507dd6f82a7..a554c79dcd390 100644 --- a/drivers/gpu/drm/arm/hdlcd_drv.c +++ b/drivers/gpu/drm/arm/hdlcd_drv.c @@ -26,7 +26,7 @@ #include #include #include -#include +#include #include #include #include @@ -301,7 +301,7 @@ static int hdlcd_drm_bind(struct device *dev) if (ret) goto err_register; - drm_fbdev_generic_setup(drm, 32); + drm_fbdev_dma_setup(drm, 32); return 0;