USB: musb: using 0 instead of NULL
authorDan Carpenter <error27@gmail.com>
Sun, 20 Mar 2011 11:15:24 +0000 (14:15 +0300)
committerFelipe Balbi <balbi@ti.com>
Wed, 13 Apr 2011 08:51:21 +0000 (11:51 +0300)
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>
drivers/usb/musb/cppi_dma.c

index 6385eeb44a0721bb2651f272f68e1340c0b8897d..0db0f5e7d3a4faff746769eeafc7a08e61518a29 100644 (file)
@@ -1455,7 +1455,7 @@ static int cppi_channel_abort(struct dma_channel *channel)
                 *    compare mode by writing 1 to the tx_complete register.
                 */
                cppi_reset_tx(tx_ram, 1);
-               cppi_ch->head = 0;
+               cppi_ch->head = NULL;
                musb_writel(&tx_ram->tx_complete, 0, 1);
                cppi_dump_tx(5, cppi_ch, " (done teardown)");