]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
usb: gadget: dummy: do not call pullup() on udc_stop()
authorFelipe Balbi <balbi@ti.com>
Wed, 18 Apr 2012 10:59:30 +0000 (13:59 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 May 2012 15:53:23 +0000 (08:53 -0700)
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>
drivers/usb/gadget/dummy_hcd.c

index db815c2da7ed42743a907b793ed8556d1864d728..909864204f56d5d57039c0656862093f26965578 100644 (file)
@@ -924,7 +924,6 @@ static int dummy_udc_stop(struct usb_gadget *g,
 
        dum->driver = NULL;
 
-       dummy_pullup(&dum->gadget, 0);
        return 0;
 }