]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP: MUSB: fix compile for non-OTG modes
authorKevin Hilman <khilman@mvista.com>
Thu, 16 Aug 2007 18:18:01 +0000 (11:18 -0700)
committerTony Lindgren <tony@atomide.com>
Fri, 17 Aug 2007 07:18:23 +0000 (00:18 -0700)
Signed-off-by: Kevin Hilman <khilman@mvista.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/usb/musb/plat_uds.c

index f9077e08f2641099294a0e97aec71cc01a362d14..c828bd14eb88da558519cdbf24bae9be4d3678a4 100644 (file)
@@ -737,9 +737,11 @@ static irqreturn_t musb_stage2_irq(struct musb * musb, u8 int_usb,
                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)