usb: musb: tusb6010_omap: fix build failure: error: 'musb' undeclared
authorSergei Trofimovich <slyfox@gentoo.org>
Sun, 17 Jul 2011 15:28:00 +0000 (18:28 +0300)
committerFelipe Balbi <balbi@ti.com>
Mon, 1 Aug 2011 19:06:44 +0000 (22:06 +0300)
  CC      drivers/usb/musb/tusb6010_omap.o
drivers/usb/musb/tusb6010_omap.c: In function 'tusb_omap_use_shared_dmareq':
drivers/usb/musb/tusb6010_omap.c:92: error: 'musb' undeclared (first use in this function)
drivers/usb/musb/tusb6010_omap.c:92: error: (Each undeclared identifier is reported only once
drivers/usb/musb/tusb6010_omap.c:92: error: for each function it appears in.)

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/tusb6010_omap.c

index c784e6c03aac7fbc4cfec0927ee689496ab61749..07c8a73dfe41c4d565f8f36b2134bdc373e7b5bb 100644 (file)
@@ -89,7 +89,7 @@ static inline int tusb_omap_use_shared_dmareq(struct tusb_omap_dma_ch *chdat)
        u32             reg = musb_readl(chdat->tbase, TUSB_DMA_EP_MAP);
 
        if (reg != 0) {
-               dev_dbg(musb->controller, "ep%i dmareq0 is busy for ep%i\n",
+               dev_dbg(chdat->musb->controller, "ep%i dmareq0 is busy for ep%i\n",
                        chdat->epnum, reg & 0xf);
                return -EAGAIN;
        }