diff options
author | Felipe Balbi <balbi@ti.com> | 2014-10-17 20:18:23 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-11-03 10:01:18 -0600 |
commit | c77f570fe2ec9d205cdd90805dd78fcd70b860ec (patch) | |
tree | 2fffae84cc4a7e5d9fba0232cdf07df0327f7084 /drivers/usb/gadget/udc/dummy_hcd.c | |
parent | 0d3ca262699fd6d7c5dcc25ff29a711851797117 (diff) | |
download | op-kernel-dev-c77f570fe2ec9d205cdd90805dd78fcd70b860ec.zip op-kernel-dev-c77f570fe2ec9d205cdd90805dd78fcd70b860ec.tar.gz |
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: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/udc/dummy_hcd.c')
-rw-r--r-- | drivers/usb/gadget/udc/dummy_hcd.c | 1 |
1 files changed, 0 insertions, 1 deletions
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"); } |