summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAjay Kumar Gupta <ajay.gupta@ti.com>2010-11-22 09:52:41 +0100
committerFelipe Balbi <balbi@ti.com>2010-11-22 11:42:09 +0100
commitbb324b08165d5656d221af013ed9994a54e455be (patch)
tree2d0e3ed23e1d7dcc03e044c8576d02c9f6e4f412 /drivers
parentusb: musb: clear RXCSR_AUTOCLEAR before PIO read (diff)
downloadlinux-bb324b08165d5656d221af013ed9994a54e455be.tar.xz
linux-bb324b08165d5656d221af013ed9994a54e455be.zip
usb: musb: gadget: fix compilation warning
Fixes below compilation warning when musb driver is compiled for PIO mode: drivers/usb/musb/musb_gadget.c: In function 'musb_g_rx': drivers/usb/musb/musb_gadget.c:840: warning: label 'exit' defined but not used Signed-off-by: Ajay Kumar Gupta <ajay.gupta@ti.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/musb/musb_gadget.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c
index 363cfad003f8..c8de0e123f2c 100644
--- a/drivers/usb/musb/musb_gadget.c
+++ b/drivers/usb/musb/musb_gadget.c
@@ -896,7 +896,9 @@ void musb_g_rx(struct musb *musb, u8 epnum)
if (!request)
return;
}
+#if defined(CONFIG_USB_INVENTRA_DMA) || defined(CONFIG_USB_TUSB_OMAP_DMA)
exit:
+#endif
/* Analyze request */
rxstate(musb, to_musb_request(request));
}