usb: gadget: udc: dummy: do not call usb_gadget_unregister_driver()
authorFelipe Balbi <balbi@ti.com>
Sat, 18 Oct 2014 01:18:23 +0000 (20:18 -0500)
committerFelipe Balbi <balbi@ti.com>
Mon, 3 Nov 2014 16:01:18 +0000 (10:01 -0600)
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>
drivers/usb/gadget/udc/dummy_hcd.c

index 5bffb75922f85a4a77a52b55da113b0a904e0070..254b9e7659f3c6ceec9394aaef25d78783b3c9a2 100644 (file)
@@ -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");
 }