Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 83264396 authored by Chris Wilson's avatar Chris Wilson Committed by Daniel Vetter
Browse files

drm/udl: Unplugging a device now unregisters it



Rather than manually perform our unregistration actions before shutting
down the device, move them to drm_unplug_dev().

Signed-off-by: default avatarChris 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: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1466778982-6974-4-git-send-email-chris@chris-wilson.co.uk
parent a39be606
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -94,7 +94,6 @@ static void udl_usb_disconnect(struct usb_interface *interface)
	struct drm_device *dev = usb_get_intfdata(interface);
	struct drm_device *dev = usb_get_intfdata(interface);


	drm_kms_helper_poll_disable(dev);
	drm_kms_helper_poll_disable(dev);
	drm_connector_unregister_all(dev);
	udl_fbdev_unplug(dev);
	udl_fbdev_unplug(dev);
	udl_drop_usb(dev);
	udl_drop_usb(dev);
	drm_unplug_dev(dev);
	drm_unplug_dev(dev);