]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Clean up connectors by unreferencing them
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 13 Dec 2016 23:08:08 +0000 (00:08 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 18 Dec 2016 13:33:51 +0000 (14:33 +0100)
commit2ab8c5f8c0358010a19e82656fa4826a6a51d1e0
treeaf57da261c191fa99d10ea32cfe2f0f84cff0c54
parentc36a3254f7857f1ad9badbe3578ccc92be541a8e
drm: Clean up connectors by unreferencing them

Only static connectors should be left at this point, and we should be
able to clean them out by simply dropping that last reference still
around from drm_connector_init.

If that leaves anything behind then we have a driver bug.

Doing the final cleanup this way also allows us to use
drm_connector_iter, removing the very last place where we walk
connector_list explicitly in drm core&helpers.

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161213230814.19598-8-daniel.vetter@ffwll.ch
drivers/gpu/drm/drm_mode_config.c