]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Do a full device unregister when unplugging
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 24 Jun 2016 14:36:20 +0000 (15:36 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 12 Jul 2016 11:01:49 +0000 (13:01 +0200)
commit9dd481ed9421f468b779363e67938debea882c9f
tree16996113c5b0f49cf57b7230844e2c023a4e4ca6
parent64c8e588397fecfd6a66b8f8fcd6fde28a4e0767
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 <chris@chris-wilson.co.uk>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Alexey Brodkin <Alexey.Brodkin@synopsys.com>
Cc: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1466778982-6974-3-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/drm_drv.c