Skip to contentSkip to conversation

MUSB: Removes compilation warning in gadget mode

PATCH In review Ajay Kumar Gupta 2 participants 2 messages Sep 4, 2008 – Sep 5, 2008

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

PATCH 1/1 MUSB: Removes compilation warning in gadget mode

Fixes compilation warning when musb is configured in gadget mode.

---
 drivers/usb/musb/omap2430.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/usb/musb/omap2430.c +2 -0
index 472c304..ea5c504 100644
@@ -53,7 +53,9 @@ static void musb_do_idle(unsigned long _musb)
 {
 	struct musb	*musb = (void *)_musb;
 	unsigned long	flags;
+#ifdef CONFIG_USB_MUSB_HDRC_HCD
 	u8	power;
+#endif
 	u8	devctl;
 
 	devctl = musb_readb(musb->mregs, MUSB_DEVCTL);
Signature · 6 lines
1.5.6

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Acked-by on v1 1/1
#1 lore raw
Quoted 3 lines · Ajay Kumar Gupta

Fixes compilation warning when musb is configured in gadget mode.

Quoted 20 lines
---
 drivers/usb/musb/omap2430.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/usb/musb/omap2430.c +2 -0
index 472c304..ea5c504 100644
@@ -53,7 +53,9 @@ static void musb_do_idle(unsigned long _musb)
 {
 	struct musb	*musb = (void *)_musb;
 	unsigned long	flags;
+#ifdef CONFIG_USB_MUSB_HDRC_HCD
 	u8	power;
+#endif
 	u8	devctl;
 
 	devctl = musb_readb(musb->mregs, MUSB_DEVCTL);
Signature · 1 line
1.5.6
Signature · 1 line
balbi