drm: Put legacy lastclose work into drm_legacy_dev_reinit
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 26 Apr 2016 17:29:35 +0000 (19:29 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 27 Apr 2016 06:42:26 +0000 (08:42 +0200)
commit68dfbebab131146b460550cebf8c38667c490a04
tree3da20430ec621e62c33e8181bf7683c1aff66ddb
parent366884b17fae7d2a7517eea60e64d6d6754fa9db
drm: Put legacy lastclose work into drm_legacy_dev_reinit

Except for the ->lasclose driver callback evrything in drm_lastclose()
is all legacy cruft and can be hidden. Which means another
dev->struct_mutex site disappears entirely for modern drivers!

Also while at it change the return value of drm_lastclose to void
since it will always succeed. No one checks the return value of
close() anyway, ever.

v2: Move misplaced hunk, spotted by 0day.

Cc: Thierry Reding <thierry.reding@gmail.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1461691808-12414-3-git-send-email-daniel.vetter@ffwll.ch
drivers/gpu/drm/drm_fops.c
drivers/gpu/drm/drm_internal.h