Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 316911
b: refs/heads/master
c: 2b19a52
h: refs/heads/master
i:
  316909: 0cb8536
  316907: f24590b
  316903: 17424bd
  316895: 1133341
v: v3
  • Loading branch information
Lukasz Majewski authored and Felipe Balbi committed Jun 15, 2012
1 parent 09163ef commit b3296ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 22258f4906aa87e0c0debcad22cb292453e2ebfb
refs/heads/master: 2b19a52cc8a31ede990323d46a7faeeeba76bb8f
5 changes: 5 additions & 0 deletions trunk/drivers/usb/gadget/s3c-hsotg.c
Original file line number Diff line number Diff line change
Expand Up @@ -2988,6 +2988,7 @@ static int s3c_hsotg_udc_stop(struct usb_gadget *gadget,
struct usb_gadget_driver *driver)
{
struct s3c_hsotg *hsotg = to_hsotg(gadget);
unsigned long flags = 0;
int ep;

if (!hsotg)
Expand All @@ -3000,13 +3001,17 @@ static int s3c_hsotg_udc_stop(struct usb_gadget *gadget,
for (ep = 0; ep < hsotg->num_of_eps; ep++)
s3c_hsotg_ep_disable(&hsotg->eps[ep].ep);

spin_lock_irqsave(&hsotg->lock, flags);

s3c_hsotg_phy_disable(hsotg);
regulator_bulk_disable(ARRAY_SIZE(hsotg->supplies), hsotg->supplies);

hsotg->driver = NULL;
hsotg->gadget.speed = USB_SPEED_UNKNOWN;
hsotg->gadget.dev.driver = NULL;

spin_unlock_irqrestore(&hsotg->lock, flags);

dev_info(hsotg->dev, "unregistered gadget driver '%s'\n",
driver->driver.name);

Expand Down

0 comments on commit b3296ab

Please sign in to comment.