mirror of
https://github.com/torvalds/linux.git
synced 2024-11-07 04:32:03 +00:00
usb: musb: remove a bit of indentation
And use dev instead of musb->controller. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
b3314d9ac5
commit
08dec56ee2
@ -352,20 +352,19 @@ 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)
|
||||||
devctl = musb_readb(musb->mregs, MUSB_DEVCTL);
|
break;
|
||||||
/* start the session */
|
devctl = musb_readb(musb->mregs, MUSB_DEVCTL);
|
||||||
devctl |= MUSB_DEVCTL_SESSION;
|
/* start the session */
|
||||||
musb_writeb(musb->mregs, MUSB_DEVCTL, devctl);
|
devctl |= MUSB_DEVCTL_SESSION;
|
||||||
while (musb_readb(musb->mregs, MUSB_DEVCTL) &
|
musb_writeb(musb->mregs, MUSB_DEVCTL, devctl);
|
||||||
MUSB_DEVCTL_BDEVICE) {
|
while (musb_readb(musb->mregs, MUSB_DEVCTL) &
|
||||||
cpu_relax();
|
MUSB_DEVCTL_BDEVICE) {
|
||||||
|
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user