提交 eef767b7 编写于 作者: A Ajay Kumar Gupta 提交者: Greg Kroah-Hartman

usb: musb: Removes compilation warning in gadget mode

Fixes compilation warning when musb is configured in gadget mode.
Signed-off-by: NAjay Kumar Gupta <ajay.gupta@ti.com>
Signed-off-by: NFelipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 14a2c96f
...@@ -53,7 +53,9 @@ static void musb_do_idle(unsigned long _musb) ...@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册