Skip to content

Commit 79972f1

Browse files
geertuThomas Zimmermann
authored andcommitted
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 <[email protected]> Signed-off-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Thomas Zimmermann <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Signed-off-by: Thomas Zimmermann <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/c836938112fda21762bc9eb2741ccd0cbf1197ef.1684854992.git.geert+renesas@glider.be
1 parent 5afe823 commit 79972f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/gpu/drm/shmobile/shmob_drm_drv.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <linux/slab.h>
1717

1818
#include <drm/drm_drv.h>
19+
#include <drm/drm_fbdev_generic.h>
1920
#include <drm/drm_gem_dma_helper.h>
2021
#include <drm/drm_module.h>
2122
#include <drm/drm_probe_helper.h>
@@ -271,6 +272,8 @@ static int shmob_drm_probe(struct platform_device *pdev)
271272
if (ret < 0)
272273
goto err_irq_uninstall;
273274

275+
drm_fbdev_generic_setup(ddev, 16);
276+
274277
return 0;
275278

276279
err_irq_uninstall:

0 commit comments

Comments
 (0)