Skip to content

Commit

Permalink
drm/rockchip: pass 0 to drm_fbdev_generic_setup()
Browse files Browse the repository at this point in the history
Allow drm_fbdev_generic_setup() to pick the default bpp value for the
framebuffer.

This has no functional impact because the default is 32, given that
mode_config.preferred_depth is not set for Rockchip.

Suggested-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: John Keeping <john@metanate.com>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20211101114622.813536-1-john@metanate.com
  • Loading branch information
John Keeping authored and Thomas Zimmermann committed Dec 7, 2021
1 parent 24af7c3 commit f2ed93a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/rockchip/rockchip_drm_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ static int rockchip_drm_bind(struct device *dev)
if (ret)
goto err_kms_helper_poll_fini;

drm_fbdev_generic_setup(drm_dev, 32);
drm_fbdev_generic_setup(drm_dev, 0);

return 0;
err_kms_helper_poll_fini:
Expand Down

0 comments on commit f2ed93a

Please sign in to comment.