diff options
author | Dan Carpenter <error27@gmail.com> | 2011-03-20 07:15:24 -0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2011-04-13 04:51:21 -0400 |
commit | aca7f353219abfb7b8a1530fbba1b1acf0e30da4 (patch) | |
tree | 41de9aa154d576d775671e8cb1e20fd18e8a2034 /drivers/usb | |
parent | ec63bf6c06b01ceeb6048a2b9fa9e73060259307 (diff) |
USB: musb: using 0 instead of NULL
Sparse complains (and rightly so):
drivers/usb/musb/cppi_dma.c:1458:33:
warning: Using plain integer as NULL pointer
Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb')
-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 6385eeb44a07..0db0f5e7d3a4 100644 --- a/drivers/usb/musb/cppi_dma.c +++ b/drivers/usb/musb/cppi_dma.c | |||
@@ -1455,7 +1455,7 @@ static int cppi_channel_abort(struct dma_channel *channel) | |||
1455 | * compare mode by writing 1 to the tx_complete register. | 1455 | * compare mode by writing 1 to the tx_complete register. |
1456 | */ | 1456 | */ |
1457 | cppi_reset_tx(tx_ram, 1); | 1457 | cppi_reset_tx(tx_ram, 1); |
1458 | cppi_ch->head = 0; | 1458 | cppi_ch->head = NULL; |
1459 | musb_writel(&tx_ram->tx_complete, 0, 1); | 1459 | musb_writel(&tx_ram->tx_complete, 0, 1); |
1460 | cppi_dump_tx(5, cppi_ch, " (done teardown)"); | 1460 | cppi_dump_tx(5, cppi_ch, " (done teardown)"); |
1461 | 1461 | ||