From: Felipe Balbi Date: Wed, 18 Apr 2012 10:59:30 +0000 (+0300) Subject: usb: gadget: dummy: do not call pullup() on udc_stop() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=15b120d67019d691e4389372967332d74a80522a;p=linux-beck.git usb: gadget: dummy: do not call pullup() on udc_stop() 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. Cc: stable@vger.kernel.org Reviewed-by: Alexander Shishkin Acked-by: Alan Stern Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/gadget/dummy_hcd.c b/drivers/usb/gadget/dummy_hcd.c index a6dfd2164166..170cbe89d9f8 100644 --- a/drivers/usb/gadget/dummy_hcd.c +++ b/drivers/usb/gadget/dummy_hcd.c @@ -927,7 +927,6 @@ static int dummy_udc_stop(struct usb_gadget *g, dum->driver = NULL; - dummy_pullup(&dum->gadget, 0); return 0; }