drm: Fix locking cargo-cult in encoder/plane init/cleanup
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 29 Nov 2016 09:45:38 +0000 (10:45 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 29 Nov 2016 22:34:36 +0000 (23:34 +0100)
commit661a3755610ead153232011d22dc5c3688b24146
treeb02861e28123a25d475db5e8d2578ecf9c5f913f
parentb07c42547b8253c806ae2d03c452b7d894672685
drm: Fix locking cargo-cult in encoder/plane init/cleanup

Encoders&planes can't be hotplugged, we dont need locking for this
since it's all single-threaded driver setup/teardown code. CRTCs
already don't grab locks.

While at it I noticed that plane's are missing the
drm_modeset_lock_fini() call, so add it.

Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161129094538.9650-1-daniel.vetter@ffwll.ch
drivers/gpu/drm/drm_encoder.c
drivers/gpu/drm/drm_plane.c