]> 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)
commit4e5b6ea87813dc4c9b20774a946e89a2338a3d9c
treeaf57da261c191fa99d10ea32cfe2f0f84cff0c54
parent32822e46b451eea41e61308ffe060210a8fc8d89
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