From: Kevin Hilman Date: Thu, 16 Aug 2007 18:18:01 +0000 (-0700) Subject: ARM: OMAP: MUSB: fix compile for non-OTG modes X-Git-Tag: v2.6.23-omap1~173 X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?p=linux-2.6-omap-h63xx.git;a=commitdiff_plain;h=910014d1fb95e660551fbdab3b9b72905c334718 ARM: OMAP: MUSB: fix compile for non-OTG modes Signed-off-by: Kevin Hilman Signed-off-by: Tony Lindgren --- diff --git a/drivers/usb/musb/plat_uds.c b/drivers/usb/musb/plat_uds.c index f9077e08f26..c828bd14eb8 100644 --- a/drivers/usb/musb/plat_uds.c +++ b/drivers/usb/musb/plat_uds.c @@ -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)