Set up the internal fbdev client in the Unisoc DRM driver. This is needed to make the framebuffer console work.
Signed-off-by: Otto Pflüger <[email protected]> --- drivers/gpu/drm/sprd/sprd_drm.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/sprd/sprd_drm.c b/drivers/gpu/drm/sprd/sprd_drm.c index ceacdcb7c566d00b98d83c27dbab80523bc6a7d5..db6b3790d29ac324a88ecb57a66247f55d40a794 100644 --- a/drivers/gpu/drm/sprd/sprd_drm.c +++ b/drivers/gpu/drm/sprd/sprd_drm.c @@ -11,8 +11,10 @@ #include <linux/of_graph.h> #include <linux/platform_device.h> +#include <drm/clients/drm_client_setup.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_drv.h> +#include <drm/drm_fbdev_dma.h> #include <drm/drm_gem_dma_helper.h> #include <drm/drm_gem_framebuffer_helper.h> #include <drm/drm_of.h> @@ -55,6 +57,7 @@ static struct drm_driver sprd_drm_drv = { /* GEM Operations */ DRM_GEM_DMA_DRIVER_OPS, + DRM_FBDEV_DMA_DRIVER_OPS, .name = DRIVER_NAME, .desc = DRIVER_DESC, @@ -106,6 +109,8 @@ static int sprd_drm_bind(struct device *dev) if (ret < 0) goto err_kms_helper_poll_fini; + drm_client_setup(drm, NULL); + return 0; err_kms_helper_poll_fini: -- 2.50.0
