drm/gma500: Drop dev->struct_mutex from modeset code
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 23 Nov 2015 09:32:50 +0000 (10:32 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 1 Dec 2015 09:04:59 +0000 (10:04 +0100)
commit663ab9c4c9b4be8a6aa41d65e3e89194733a5267
treef8647ee32b4fbfb8bab9ef4494699bec6ec39d17
parentd3e376f52d095103ca51dbda4d6ff8aaf488f98f
drm/gma500: Drop dev->struct_mutex from modeset code

It's either init code or already protected by other means. Note
that psb_gtt_pin/unpin has it's own lock, and that's really the
only piece of driver private state - all the modeset state is
protected with modeset locks already.

The only important bit is to switch all gem_obj_unref calls to the
_unlocked variant.

Cc: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Acked-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1448271183-20523-18-git-send-email-daniel.vetter@ffwll.ch
drivers/gpu/drm/gma500/gma_display.c