usb: musb: Removes compilation warning in gadget mode
Fixes compilation warning when musb is configured in gadget mode. Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com> Signed-off-by: Felipe Balbi <felipe.balbi@nokia.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
14a2c96f72
commit
eef767b761
@@ -53,7 +53,9 @@ static void musb_do_idle(unsigned long _musb)
|
|||||||
{
|
{
|
||||||
struct musb *musb = (void *)_musb;
|
struct musb *musb = (void *)_musb;
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
|
#ifdef CONFIG_USB_MUSB_HDRC_HCD
|
||||||
u8 power;
|
u8 power;
|
||||||
|
#endif
|
||||||
u8 devctl;
|
u8 devctl;
|
||||||
|
|
||||||
devctl = musb_readb(musb->mregs, MUSB_DEVCTL);
|
devctl = musb_readb(musb->mregs, MUSB_DEVCTL);
|
||||||
|
Reference in New Issue
Block a user