diff mbox

OMAP: PM: BUG: 3.0-rc6 does not compile, tusb6010_omap.c fails to compile "musb undeclared"

Message ID 20110714074517.GB2614@legolas.emea.dhcp.ti.com (mailing list archive)
State New, archived
Headers show

Commit Message

Felipe Balbi July 14, 2011, 7:45 a.m. UTC
On Tue, Jul 12, 2011 at 02:39:45PM -0300, Victhor wrote:
> | 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.)

hmm... how about this ?
diff mbox

Patch

diff --git a/drivers/usb/musb/tusb6010_omap.c b/drivers/usb/musb/tusb6010_omap.c
index c784e6c..07c8a73 100644
--- a/drivers/usb/musb/tusb6010_omap.c
+++ b/drivers/usb/musb/tusb6010_omap.c
@@ -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;
        }