]> 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)
commitac017bb8dff5ea6bc3dc9c99790a5ba388a9a00d
treeaf57da261c191fa99d10ea32cfe2f0f84cff0c54
parent46fc8ffcd46be13b7a0ad033435d24fd146d7d14
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