Skip to content

Commit

Permalink
usb: gadget: dummy: do not call pullup() on udc_stop()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Felipe Balbi committed Apr 19, 2012
1 parent c67dd31 commit 15b120d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/usb/gadget/dummy_hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,6 @@ static int dummy_udc_stop(struct usb_gadget *g,

dum->driver = NULL;

dummy_pullup(&dum->gadget, 0);
return 0;
}

Expand Down

0 comments on commit 15b120d

Please sign in to comment.