drm: Do a full device unregister when unplugging
authorChris Wilson <[email protected]>
Fri, 24 Jun 2016 14:36:20 +0000 (15:36 +0100)
committerDaniel Vetter <[email protected]>
Tue, 12 Jul 2016 11:01:49 +0000 (13:01 +0200)
commita39be606f99d877838a34f5dd8c8be4f0a26ea2b
tree16996113c5b0f49cf57b7230844e2c023a4e4ca6
parent041401ffdf7d6e5c9ea49a86eb4410ad9c3f89fd
drm: Do a full device unregister when unplugging

Rather than do a partial unregister of just the minors, unregister the
device (drm_dev_unregister(), and so remove all userspace interfaces,
when the device is unplugged (drm_unplug_dev()).

Signed-off-by: Chris Wilson <[email protected]>
Cc: David Airlie <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: Laurent Pinchart <[email protected]>
Cc: Alexey Brodkin <[email protected]>
Cc: Amitoj Kaur Chawla <[email protected]>
Cc: [email protected]
Signed-off-by: Daniel Vetter <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/drm_drv.c