drm: Make drm_connector_register() safe against multiple calls
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 15 Jun 2016 12:17:48 +0000 (13:17 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 17 Jun 2016 07:43:29 +0000 (09:43 +0200)
commit40daac6136948dc83c1dec14fe4a2444915b22df
treed1a6fd9ec859efb4ae9b241dbb5b642d9a20cbc2
parentaaf285e2e0ff490e924dbcdfd08e8274c3093354
drm: Make drm_connector_register() safe against multiple calls

Protect against drivers that may try to register the connector more
than once, or who try to unregister it multiple times.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Dave Airlie <airlied@redhat.com>
Cc: dri-devel@lists.freedesktop.org
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1465993109-19523-4-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/drm_crtc.c
include/drm/drm_crtc.h