ARM: OMAP: MUSB: fix compile for non-OTG modes
Subsystems (2)
PATCH 1/1 ARM: OMAP: MUSB: fix compile for non-OTG modes
Signed-off-by Kevin Hilman <[email protected]>
--- drivers/usb/musb/plat_uds.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/usb/musb/plat_uds.c +2 -0
@@ -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)
--
Quoted 11 lines · Kevin Hilman
Signed-off-by Kevin Hilman <[email protected]>--- 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
-0switch (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