UPSTREAM: drm: Automatically register/unregister all connectors
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 17 Jun 2016 08:25:17 +0000 (09:25 +0100)
committerMark Yao <mark.yao@rock-chips.com>
Tue, 3 Jan 2017 01:16:47 +0000 (09:16 +0800)
commit0945ee8bb8c1e243f709fb94e72a80a0ae214999
treef2e5800c1f6d8e2e39d50edc0aed6ffdada9fca7
parent637d7a2ac575934d85c9e58f413c7e86cf2a39d7
UPSTREAM: drm: Automatically register/unregister all connectors

As the drm_connector is now safe for multiple calls to
register/unregister, automatically perform a registration on all known
connectors drm drv_register (and unregister from drm_drv_unregister).
Drivers can still call drm_connector_register() and
drm_connector_unregister() individually, or defer as required.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1466151923-1572-2-git-send-email-chris@chris-wilson.co.uk
(cherry picked from commit e28cd4d0a223e1bcea616326e2281900e7e7e9a2)

Change-Id: I30a4e2e65a88e824597774f8c59671fcf4cd0384
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
drivers/gpu/drm/drm_crtc.c
drivers/gpu/drm/drm_drv.c