]> git.karo-electronics.de Git - linux-beck.git/commit
drm: Pull together probe + setup for drm_fb_helper
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 29 Nov 2016 12:02:16 +0000 (12:02 +0000)
committerSean Paul <seanpaul@chromium.org>
Tue, 29 Nov 2016 20:52:32 +0000 (15:52 -0500)
commit64e94407fb5a4128636c2b15b38fa6e71a427228
tree41f5a7d2434f95cd9591df309125daec1a971d28
parent966a6a13c6660b499caf2932de22ae70c1317786
drm: Pull together probe + setup for drm_fb_helper

drm_fb_helper_probe_connector_modes() is always called before
drm_setup_crtcs(), so just move the call into drm_setup_crtcs for a
small bit of code compaction.

Note that register_framebuffer will do a modeset (when fbcon is enabled)
and hence must be moved out of the critical section. A follow-up patch
will add new locking for the fb list, hence move all the related
registration code together.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Daniel Vetter <daniel.vetter@intel.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20161129120217.7344-2-chris@chris-wilson.co.uk
drivers/gpu/drm/drm_fb_helper.c