From: Geert Uytterhoeven Date: Tue, 23 May 2023 15:31:36 +0000 (+0200) Subject: drm: shmobile: Add missing call to drm_fbdev_generic_setup() X-Git-Tag: v6.6.7~1918^2~23^2~286 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=79972f160f20c82b56a248daf056ef9befcc8912;p=platform%2Fkernel%2Flinux-starfive.git drm: shmobile: Add missing call to drm_fbdev_generic_setup() Set up generic fbdev emulation, to enable support for the Linux console. Use 16 as the preferred depth, as that is a good compromise between colorfulness and resource utilization, and the default of the fbdev driver. Suggested-by: Laurent Pinchart Signed-off-by: Geert Uytterhoeven Reviewed-by: Thomas Zimmermann Reviewed-by: Laurent Pinchart Signed-off-by: Thomas Zimmermann Link: https://patchwork.freedesktop.org/patch/msgid/c836938112fda21762bc9eb2741ccd0cbf1197ef.1684854992.git.geert+renesas@glider.be --- diff --git a/drivers/gpu/drm/shmobile/shmob_drm_drv.c b/drivers/gpu/drm/shmobile/shmob_drm_drv.c index faacfee..30493ce 100644 --- a/drivers/gpu/drm/shmobile/shmob_drm_drv.c +++ b/drivers/gpu/drm/shmobile/shmob_drm_drv.c @@ -16,6 +16,7 @@ #include #include +#include #include #include #include @@ -271,6 +272,8 @@ static int shmob_drm_probe(struct platform_device *pdev) if (ret < 0) goto err_irq_uninstall; + drm_fbdev_generic_setup(ddev, 16); + return 0; err_irq_uninstall: