Skip to content

Commit

Permalink
usb: gadget: s3c-hsudc: don't touch gadget.dev.driver
Browse files Browse the repository at this point in the history
udc-core now handles that for us, which means
we can remove it from our driver.

Signed-off-by: Felipe Balbi <balbi@ti.com>
  • Loading branch information
Felipe Balbi committed Mar 18, 2013
1 parent 430e958 commit 492a390
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/usb/gadget/s3c-hsudc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1154,7 +1154,6 @@ static int s3c_hsudc_start(struct usb_gadget *gadget,
return -EBUSY;

hsudc->driver = driver;
hsudc->gadget.dev.driver = &driver->driver;

ret = regulator_bulk_enable(ARRAY_SIZE(hsudc->supplies),
hsudc->supplies);
Expand Down Expand Up @@ -1190,7 +1189,6 @@ static int s3c_hsudc_start(struct usb_gadget *gadget,
regulator_bulk_disable(ARRAY_SIZE(hsudc->supplies), hsudc->supplies);
err_supplies:
hsudc->driver = NULL;
hsudc->gadget.dev.driver = NULL;
return ret;
}

Expand All @@ -1208,7 +1206,6 @@ static int s3c_hsudc_stop(struct usb_gadget *gadget,

spin_lock_irqsave(&hsudc->lock, flags);
hsudc->driver = NULL;
hsudc->gadget.dev.driver = NULL;
hsudc->gadget.speed = USB_SPEED_UNKNOWN;
s3c_hsudc_uninit_phy();

Expand Down

0 comments on commit 492a390

Please sign in to comment.