mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-22 20:53:00 +07:00
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 <tzimmermann@suse.de> Reviewed-by: Noralf Trønnes <noralf@tronnes.org> Acked-by: Sam Ravnborg <sam@ravnborg.org> Acked-by: Gerd Hoffmann <kraxel@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200408082641.590-4-tzimmermann@suse.de
This commit is contained in:
parent
1a2b333507
commit
e883a82b69
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user