summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2020-01-28 02:30:48 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2020-01-28 02:30:48 +0000
commit870bf46ae1fbc9086fd8f30141901674975df8c8 (patch)
tree03c1734685201e2c77f0c87c17c6b1c8fd683f87
parente272a28927ce91fb08d76573f2c19dbd364631f3 (diff)
drm/fb-helper: generic: Call drm_client_add() after setup is done
From Noralf Tronnes 6c5df6f63e8f98fe89c41c879385105bd0952248 in linux 4.19.y/4.19.99 6e3f17ee73f7e3c2ef0e2c8fd8624b2ece8ef2c9 in mainline linux
-rw-r--r--sys/dev/pci/drm/drm_fb_helper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/drm_fb_helper.c b/sys/dev/pci/drm/drm_fb_helper.c
index 9a67ab46101..90cba88a69a 100644
--- a/sys/dev/pci/drm/drm_fb_helper.c
+++ b/sys/dev/pci/drm/drm_fb_helper.c
@@ -3322,8 +3322,6 @@ int drm_fbdev_generic_setup(struct drm_device *dev, unsigned int preferred_bpp)
return ret;
}
- drm_client_add(&fb_helper->client);
-
if (!preferred_bpp)
preferred_bpp = dev->mode_config.preferred_depth;
if (!preferred_bpp)
@@ -3332,6 +3330,8 @@ int drm_fbdev_generic_setup(struct drm_device *dev, unsigned int preferred_bpp)
drm_fbdev_client_hotplug(&fb_helper->client);
+ drm_client_add(&fb_helper->client);
+
return 0;
}
EXPORT_SYMBOL(drm_fbdev_generic_setup);