diff options
author | Dan Carpenter <error27@gmail.com> | 2011-03-20 12:18:26 +0100 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2011-04-13 10:51:24 +0200 |
commit | 2e10f5e70f670d981f789075e3ebc394f5bb51e3 (patch) | |
tree | f24606fb979ec46730109cb48de7d7c3e0a7e440 /drivers/usb/musb/cppi_dma.c | |
parent | USB: musb: silence printk format warning (diff) | |
download | linux-2e10f5e70f670d981f789075e3ebc394f5bb51e3.tar.xz linux-2e10f5e70f670d981f789075e3ebc394f5bb51e3.zip |
USB: musb: dereferencing an iomem pointer
"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>
Diffstat (limited to 'drivers/usb/musb/cppi_dma.c')
-rw-r--r-- | drivers/usb/musb/cppi_dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/musb/cppi_dma.c b/drivers/usb/musb/cppi_dma.c index eb9161ae57a4..ab434fbd8c35 100644 --- a/drivers/usb/musb/cppi_dma.c +++ b/drivers/usb/musb/cppi_dma.c @@ -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; } |