projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d3ca26
)
usb: gadget: udc: dummy: do not call usb_gadget_unregister_driver()
author
Felipe Balbi
<balbi@ti.com>
Sat, 18 Oct 2014 01:18:23 +0000
(20:18 -0500)
committer
Felipe 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/usb/gadget/udc/dummy_hcd.c
b/drivers/usb/gadget/udc/dummy_hcd.c
index 5bffb75922f85a4a77a52b55da113b0a904e0070..254b9e7659f3c6ceec9394aaef25d78783b3c9a2 100644
(file)
--- 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");
}