USB: musb: tweak musb_read_fifo() to avoid unused warnings
authorMike Frysinger <vapier@gentoo.org>
Mon, 16 Nov 2009 10:49:19 +0000 (16:19 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 19:55:23 +0000 (11:55 -0800)
Otherwise gcc will whine about epnum/dma_reg being unused when building
for BF54x parts.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Signed-off-by: Cliff Cai <cliff.cai@analog.com>
Signed-off-by: Anand Gadiyar <gadiyar@ti.com>
Acked-by: Felipe Balbi <felipe.balbi@nokia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/musb/blackfin.c

index fcec87ea709e6d682f4c045d79c19c2c4a1fbcda..ef51eb4343ab24018d1efdab38ff0971efaa84e7 100644 (file)
@@ -53,13 +53,11 @@ void musb_write_fifo(struct musb_hw_ep *hw_ep, u16 len, const u8 *src)
 void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst)
 {
        void __iomem *fifo = hw_ep->fifo;
+
+#ifdef CONFIG_BF52x
        u8 epnum = hw_ep->epnum;
        u16 dma_reg = 0;
 
-       DBG(4, "%cX ep%d fifo %p count %d buf %p\n",
-                       'R', hw_ep->epnum, fifo, len, dst);
-
-#ifdef CONFIG_BF52x
        invalidate_dcache_range((unsigned int)dst,
                (unsigned int)(dst + len));
 
@@ -102,6 +100,9 @@ void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst)
                        len & 0x01 ? (len >> 1) + 1 : len >> 1);
 #endif
 
+       DBG(4, "%cX ep%d fifo %p count %d buf %p\n",
+                       'R', hw_ep->epnum, fifo, len, dst);
+
        dump_fifo_data(dst, len);
 }