[2/4] usb: gadget: udc: dummy: do not call usb_gadget_unregister_driver()

Message ID 1413595408-2011-2-git-send-email-balbi@ti.com
State Accepted
Commit c77f570fe2ec9d205cdd90805dd78fcd70b860ec
Headers show

Commit Message

Felipe Balbi Oct. 18, 2014, 1:23 a.m.
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: Felipe Balbi <balbi@ti.com>
---

found while reading code

 drivers/usb/gadget/udc/dummy_hcd.c | 1 -
 1 file changed, 1 deletion(-)

Patch

diff --git a/drivers/usb/gadget/udc/dummy_hcd.c b/drivers/usb/gadget/udc/dummy_hcd.c
index 5bffb75..254b9e7 100644
--- a/drivers/usb/gadget/udc/dummy_hcd.c
+++ b/drivers/usb/gadget/udc/dummy_hcd.c
@@ -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");
 }