Skip to content

Commit fe4cb09

Browse files
zonqueFelipe Balbi
authored andcommitted
usb: musb: gadget: remove hcd initialization
This will be done from a more appropriate location and as it doesn't work anyway, it can safely be removed before the other changes. Signed-off-by: Daniel Mack <zonque@gmail.com> Acked-by: Peter Korsgaard <jacmet@sunsite.dk> Signed-off-by: Felipe Balbi <balbi@ti.com>
1 parent 0b3eba4 commit fe4cb09

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

‎drivers/usb/musb/musb_gadget.c‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1820,7 +1820,6 @@ static int musb_gadget_start(struct usb_gadget *g,
18201820
{
18211821
struct musb *musb = gadget_to_musb(g);
18221822
struct usb_otg *otg = musb->xceiv->otg;
1823-
struct usb_hcd *hcd = musb_to_hcd(musb);
18241823
unsigned long flags;
18251824
int retval = 0;
18261825

@@ -1847,17 +1846,9 @@ static int musb_gadget_start(struct usb_gadget *g,
18471846
* handles power budgeting ... this way also
18481847
* ensures HdrcStart is indirectly called.
18491848
*/
1850-
retval = usb_add_hcd(hcd, 0, 0);
1851-
if (retval < 0) {
1852-
dev_dbg(musb->controller, "add_hcd failed, %d\n", retval);
1853-
goto err;
1854-
}
1855-
18561849
if (musb->xceiv->last_event == USB_EVENT_ID)
18571850
musb_platform_set_vbus(musb, 1);
18581851

1859-
hcd->self.uses_pio_for_control = 1;
1860-
18611852
if (musb->xceiv->last_event == USB_EVENT_NONE)
18621853
pm_runtime_put(musb->controller);
18631854

@@ -1942,7 +1933,6 @@ static int musb_gadget_stop(struct usb_gadget *g,
19421933
musb_platform_try_idle(musb, 0);
19431934
spin_unlock_irqrestore(&musb->lock, flags);
19441935

1945-
usb_remove_hcd(musb_to_hcd(musb));
19461936
/*
19471937
* FIXME we need to be able to register another
19481938
* gadget driver here and have everything work;

0 commit comments

Comments
 (0)