drm/tegra: Use drm_gem_object_unreference_unlocked()
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 23 Nov 2015 09:32:48 +0000 (10:32 +0100)
committerThierry Reding <treding@nvidia.com>
Mon, 14 Dec 2015 09:50:37 +0000 (10:50 +0100)
commita07cdfe5389e0ca43f525c7d1da0930b7447e0c8
tree062689e1ea9614fcb2635e05268f03e95ad8b12a
parentd849c82fac61921301cf2d6f0a3477a121a2ef2a
drm/tegra: Use drm_gem_object_unreference_unlocked()

This only grabs the mutex when really needed, but still has a might-
acquire lockdep check to make sure that's always possible. With this
patch Tegra DRM is officially struct_mutex free, yay!

v2: refernce_unlocked doesn't exist as kbuild spotted.

Cc: Thierry Reding <thierry.reding@gmail.com>
Acked-by: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
[treding@nvidia.com: remove unused variables]
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/drm.c
drivers/gpu/drm/tegra/gem.c