usb: gadget: dummy: do not call pullup() on udc_stop()
authorFelipe Balbi <[email protected]>
Wed, 18 Apr 2012 10:59:30 +0000 (13:59 +0300)
committerFelipe Balbi <[email protected]>
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: [email protected]
Reviewed-by: Alexander Shishkin <[email protected]>
Acked-by: Alan Stern <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
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;
 }