usb: musb: remove a bit of indentation
authorFelipe Contreras <felipe.contreras@gmail.com>
Mon, 19 Dec 2011 20:17:50 +0000 (22:17 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 20 Dec 2011 11:55:14 +0000 (13:55 +0200)
And use dev instead of musb->controller.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/omap2430.c

index 34c169896836b686d7f956fd41c829149971c0a8..4f31814eebf3e14e7b1e455afbb0944c3b3e823f 100644 (file)
@@ -352,20 +352,19 @@ static void omap2430_musb_enable(struct musb *musb)
 
        case USB_EVENT_ID:
                otg_init(musb->xceiv);
-               if (data->interface_type == MUSB_INTERFACE_UTMI) {
-                       devctl = musb_readb(musb->mregs, MUSB_DEVCTL);
-                       /* start the session */
-                       devctl |= MUSB_DEVCTL_SESSION;
-                       musb_writeb(musb->mregs, MUSB_DEVCTL, devctl);
-                       while (musb_readb(musb->mregs, MUSB_DEVCTL) &
-                                               MUSB_DEVCTL_BDEVICE) {
-                               cpu_relax();
-
-                               if (time_after(jiffies, timeout)) {
-                                       dev_err(musb->controller,
-                                       "configured as A device timeout");
-                                       break;
-                               }
+               if (data->interface_type != MUSB_INTERFACE_UTMI)
+                       break;
+               devctl = musb_readb(musb->mregs, MUSB_DEVCTL);
+               /* start the session */
+               devctl |= MUSB_DEVCTL_SESSION;
+               musb_writeb(musb->mregs, MUSB_DEVCTL, devctl);
+               while (musb_readb(musb->mregs, MUSB_DEVCTL) &
+                               MUSB_DEVCTL_BDEVICE) {
+                       cpu_relax();
+
+                       if (time_after(jiffies, timeout)) {
+                               dev_err(dev, "configured as A device timeout");
+                               break;
                        }
                }
                break;