From: Thomas Zimmermann Date: Wed, 8 Apr 2020 08:26:34 +0000 (+0200) Subject: drm/kirin: Set up fbdev after fully registering device X-Git-Tag: v5.15~303^2~28^2~3018 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e883a82b69a01f541b15599bb6ce8397a9912b0e;p=platform%2Fkernel%2Flinux-starfive.git drm/kirin: Set up fbdev after fully registering device Generic fbdev support is a DRM client. Set it up after fully registering the new DRM device. Signed-off-by: Thomas Zimmermann Reviewed-by: Noralf Trønnes Acked-by: Sam Ravnborg Acked-by: Gerd Hoffmann Link: https://patchwork.freedesktop.org/patch/msgid/20200408082641.590-4-tzimmermann@suse.de --- diff --git a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c index d3145ae..981858c 100644 --- a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c +++ b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_drv.c @@ -277,8 +277,6 @@ static int kirin_drm_bind(struct device *dev) if (ret) goto err_kms_cleanup; - drm_fbdev_generic_setup(drm_dev, 32); - /* connectors should be registered after drm device register */ if (driver_data->register_connects) { ret = kirin_drm_connectors_register(drm_dev); @@ -286,6 +284,8 @@ static int kirin_drm_bind(struct device *dev) goto err_drm_dev_unregister; } + drm_fbdev_generic_setup(drm_dev, 32); + return 0; err_drm_dev_unregister: