Skip to contentSkip to conversation

ARM: OMAP: MUSB: fix compile for non-OTG modes

PATCH In review Kevin Hilman 2 participants 2 messages Aug 16, 2007 – Aug 17, 2007

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

PATCH 1/1 ARM: OMAP: MUSB: fix compile for non-OTG modes

---
 drivers/usb/musb/plat_uds.c |    2 ++
 1 file changed, 2 insertions(+)
drivers/usb/musb/plat_uds.c +2 -0
Index: pristine/drivers/usb/musb/plat_uds.c
===================================================================
@@ -737,9 +737,11 @@ static irqreturn_t musb_stage2_irq(struc
 		handled = IRQ_HANDLED;
 
 		switch (musb->xceiv.state) {
+#ifdef	CONFIG_USB_MUSB_OTG
 		case OTG_STATE_A_PERIPHERAL:
 			musb_hnp_stop(musb);
 			break;
+#endif
 		case OTG_STATE_B_PERIPHERAL:
 			musb_g_suspend(musb);
 			musb->is_active = is_otg_enabled(musb)

--

#1 lore raw
Quoted 11 lines · Kevin Hilman
---
 drivers/usb/musb/plat_uds.c |    2 ++
 1 file changed, 2 insertions(+)

Index: pristine/drivers/usb/musb/plat_uds.c
===================================================================

drivers/usb/musb/plat_uds.c +0 -0
@@ -737,9 +737,11 @@ static irqreturn_t musb_stage2_irq(struc
 		handled = IRQ_HANDLED;

drivers/usb/musb/plat_uds.c static irqreturn_t musb_stage2_irq(struc · line 747

Quoted 10 lines
drivers/usb/musb/plat_uds.c +2 -0
 
 		switch (musb->xceiv.state) {
+#ifdef	CONFIG_USB_MUSB_OTG
 		case OTG_STATE_A_PERIPHERAL:
 			musb_hnp_stop(musb);
 			break;
+#endif
 		case OTG_STATE_B_PERIPHERAL:
 			musb_g_suspend(musb);
 			musb->is_active = is_otg_enabled(musb)

Thanks, pushing today.

Tony