diff options
author | Dan Carpenter <error27@gmail.com> | 2011-03-20 07:18:26 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2011-04-13 04:51:24 -0400 |
commit | 2e10f5e70f670d981f789075e3ebc394f5bb51e3 (patch) | |
tree | f24606fb979ec46730109cb48de7d7c3e0a7e440 /drivers/usb/musb | |
parent | 2fbcf3fa43af809ebf4e4ad33c2f0a17e903385c (diff) |
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')
-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) | |||
1204 | */ | 1204 | */ |
1205 | if (NULL == bd) { | 1205 | if (NULL == bd) { |
1206 | DBG(1, "null BD\n"); | 1206 | DBG(1, "null BD\n"); |
1207 | tx_ram->tx_complete = 0; | 1207 | musb_writel(&tx_ram->tx_complete, 0, 0); |
1208 | continue; | 1208 | continue; |
1209 | } | 1209 | } |
1210 | 1210 | ||