Commit 08dec56e authored by Felipe Contreras's avatar Felipe Contreras Committed by Felipe Balbi

usb: musb: remove a bit of indentation

And use dev instead of musb->controller.
Signed-off-by: default avatarFelipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent b3314d9a
...@@ -352,7 +352,8 @@ static void omap2430_musb_enable(struct musb *musb) ...@@ -352,7 +352,8 @@ static void omap2430_musb_enable(struct musb *musb)
case USB_EVENT_ID: case USB_EVENT_ID:
otg_init(musb->xceiv); otg_init(musb->xceiv);
if (data->interface_type == MUSB_INTERFACE_UTMI) { if (data->interface_type != MUSB_INTERFACE_UTMI)
break;
devctl = musb_readb(musb->mregs, MUSB_DEVCTL); devctl = musb_readb(musb->mregs, MUSB_DEVCTL);
/* start the session */ /* start the session */
devctl |= MUSB_DEVCTL_SESSION; devctl |= MUSB_DEVCTL_SESSION;
...@@ -362,12 +363,10 @@ static void omap2430_musb_enable(struct musb *musb) ...@@ -362,12 +363,10 @@ static void omap2430_musb_enable(struct musb *musb)
cpu_relax(); cpu_relax();
if (time_after(jiffies, timeout)) { if (time_after(jiffies, timeout)) {
dev_err(musb->controller, dev_err(dev, "configured as A device timeout");
"configured as A device timeout");
break; break;
} }
} }
}
break; break;
case USB_EVENT_VBUS: case USB_EVENT_VBUS:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment