From: Ajay Kumar Gupta Date: Wed, 29 Oct 2008 13:10:38 +0000 (+0200) Subject: usb: musb: Removes compilation warning in gadget mode X-Git-Tag: v2.6.28-rc5~16^2~19 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=eef767b761bdd08200fbbfc910ab815d03787326;p=linux-2.6-omap-h63xx.git usb: musb: Removes compilation warning in gadget mode Fixes compilation warning when musb is configured in gadget mode. Signed-off-by: Ajay Kumar Gupta Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/musb/omap2430.c b/drivers/usb/musb/omap2430.c index 9d2dcb121c5..ce6c162920f 100644 --- a/drivers/usb/musb/omap2430.c +++ b/drivers/usb/musb/omap2430.c @@ -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);