summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2012-04-18 13:59:30 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-07 08:53:23 -0700
commita70de1fef4bef503aa1e676f392dee159ac17865 (patch)
tree1b2eee799399aa5cd783377888e250cdb93b0533
parent66a78b37c83ac923a58b886b32b815944c6491b7 (diff)
downloadlwn-a70de1fef4bef503aa1e676f392dee159ac17865.tar.gz
lwn-a70de1fef4bef503aa1e676f392dee159ac17865.zip
usb: gadget: dummy: do not call pullup() on udc_stop()
commit 15b120d67019d691e4389372967332d74a80522a upstream. pullup() is already called properly by udc-core.c and there's no need to call it from udc_stop(), in fact that will cause issues. Reviewed-by: Alexander Shishkin <alexander.shishkin@linux.intel.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Felipe Balbi <balbi@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/usb/gadget/dummy_hcd.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/gadget/dummy_hcd.c b/drivers/usb/gadget/dummy_hcd.c
index db815c2da7ed..909864204f56 100644
--- a/drivers/usb/gadget/dummy_hcd.c
+++ b/drivers/usb/gadget/dummy_hcd.c
@@ -924,7 +924,6 @@ static int dummy_udc_stop(struct usb_gadget *g,
dum->driver = NULL;
- dummy_pullup(&dum->gadget, 0);
return 0;
}