mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
drm/tilcdc: 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> Acked-by: Jyri Sarha <jsarha@ti.com> 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-8-tzimmermann@suse.de
This commit is contained in:
parent
fc54048a4d
commit
f5ef076215
@ -390,10 +390,9 @@ static int tilcdc_init(struct drm_driver *ddrv, struct device *dev)
|
|||||||
ret = drm_dev_register(ddev, 0);
|
ret = drm_dev_register(ddev, 0);
|
||||||
if (ret)
|
if (ret)
|
||||||
goto init_failed;
|
goto init_failed;
|
||||||
|
priv->is_registered = true;
|
||||||
|
|
||||||
drm_fbdev_generic_setup(ddev, bpp);
|
drm_fbdev_generic_setup(ddev, bpp);
|
||||||
|
|
||||||
priv->is_registered = true;
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
init_failed:
|
init_failed:
|
||||||
|
Loading…
Reference in New Issue
Block a user