USB: musb: dereferencing an iomem pointer
authorDan Carpenter <error27@gmail.com>
Sun, 20 Mar 2011 11:18:26 +0000 (14:18 +0300)
committerFelipe Balbi <balbi@ti.com>
Wed, 13 Apr 2011 08:51:24 +0000 (11:51 +0300)
"tx_ram" points to io memory.  We can't dereference it directly.  Sparse
complains about this: "drivers/usb/musb/cppi_dma.c:1205:25: warning:
dereference of noderef expression"

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/musb/cppi_dma.c

index eb9161ae57a477d1774dd550ae2d98411931ef2c..ab434fbd8c35446863052fb7df19607c295b8228 100644 (file)
@@ -1204,7 +1204,7 @@ irqreturn_t cppi_interrupt(int irq, void *dev_id)
                 */
                if (NULL == bd) {
                        DBG(1, "null BD\n");
-                       tx_ram->tx_complete = 0;
+                       musb_writel(&tx_ram->tx_complete, 0, 0);
                        continue;
                }