Skip to contentSkip to conversation

ARM: OMAP: MUSB: peripheral compile fix

PATCH In review Kevin Hilman 1 participant 2 messages Aug 17, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: OMAP: MUSB: peripheral compile fix

Move error detection for "Stopping host session because of babble" inside host-ifdef since it doesn't apply (or compile) for gadget.

---
 drivers/usb/musb/plat_uds.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/usb/musb/plat_uds.c +1 -1
Index: dev/drivers/usb/musb/plat_uds.c
===================================================================
@@ -598,7 +598,6 @@ static irqreturn_t musb_stage0_irq(struc
 		DBG(1, "CONNECT (%s) devctl %02x\n",
 				otg_state_string(musb), devctl);
 	}
-#endif	/* CONFIG_USB_MUSB_HDRC_HCD */
 
 	/* mentor saves a bit: bus reset and babble share the same irq.
 	 * only host sees babble; only peripheral sees bus reset.
@@ -627,6 +626,7 @@ static irqreturn_t musb_stage0_irq(struc
 
 		handled = IRQ_HANDLED;
 	}
+#endif	/* CONFIG_USB_MUSB_HDRC_HCD */
 
 	return handled;
 }

--

#1 lore raw
Quoted 2 lines · Kevin Hilman

Move error detection for "Stopping host session because of babble" inside host-ifdef since it doesn't apply (or compile) for gadget.

Oops, sent the wrong fix. Ignore this one.