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)
committerFelipe Balbi <balbi@ti.com>
Thu, 19 Apr 2012 09:40:08 +0000 (12:40 +0300)
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 <alexander.shishkin@linux.intel.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/dummy_hcd.c

index a6dfd21641661c08df7a524850ee6ccf670a4f3e..170cbe89d9f8ad47b9bb6ee54596521012c8de7f 100644 (file)
@@ -927,7 +927,6 @@ static int dummy_udc_stop(struct usb_gadget *g,
 
        dum->driver = NULL;
 
-       dummy_pullup(&dum->gadget, 0);
        return 0;
 }