From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin Hilman Subject: [PATCH] ARM: OMAP: MUSB: peripheral compile fix Date: Fri, 17 Aug 2007 09:12:52 -0700 Message-ID: <20070817161252.274402322@mvista.com> Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-omap-open-source-bounces@linux.omap.com Errors-To: linux-omap-open-source-bounces@linux.omap.com To: linux-omap-open-source@linux.omap.com List-Id: linux-omap@vger.kernel.org Move error detection for "Stopping host session because of babble" inside host-ifdef since it doesn't apply (or compile) for gadget. Signed-off-by: Kevin Hilman --- drivers/usb/musb/plat_uds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: dev/drivers/usb/musb/plat_uds.c =================================================================== --- dev.orig/drivers/usb/musb/plat_uds.c +++ 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; } --