drm: Clean up drm_dev_unplug
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 2 Aug 2017 11:56:04 +0000 (13:56 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 11 Aug 2017 08:49:21 +0000 (10:49 +0200)
commit0469901ea4beaa4a326ffcc9b1d6b5baf9738a42
tree9b4a432e0216c12ac8cbf49374192c504c35a56e
parent2e45eeac7c1f80a90768e667545591a1e25ff288
drm: Clean up drm_dev_unplug

Use drm_dev_unregister to unregister the interfaces, which also allows
us to simplify the open_count == 0 case.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170802115604.12734-5-daniel.vetter@ffwll.ch
drivers/gpu/drm/drm_drv.c