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

Commit c77f570f authored by Felipe Balbi's avatar Felipe Balbi
Browse files

usb: gadget: udc: dummy: do not call usb_gadget_unregister_driver()



that call is completely unnecessary because
usb_del_gadget_udc() already makes sure the
gadget driver is properly unregistered from
the UDC.

Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 0d3ca262
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -2362,7 +2362,6 @@ static void dummy_stop(struct usb_hcd *hcd)

	dum = hcd_to_dummy_hcd(hcd)->dum;
	device_remove_file(dummy_dev(hcd_to_dummy_hcd(hcd)), &dev_attr_urbs);
	usb_gadget_unregister_driver(dum->driver);
	dev_info(dummy_dev(hcd_to_dummy_hcd(hcd)), "stopped\n");
}