Skip to content

Commit

Permalink
mtd: atmel_nand: fix wrong use of 0 as NULL
Browse files Browse the repository at this point in the history
Fixing this error:
atmel_nand.c:718:20: warning: Using plain integer as NULL pointer

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Artem Bityutskiy <dedekind1@gmail.com>
  • Loading branch information
Nicolas Ferre authored and Artem Bityutskiy committed Sep 11, 2011
1 parent 08c248f commit 201ab53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/nand/atmel_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ static int __init atmel_nand_probe(struct platform_device *pdev)

dma_cap_zero(mask);
dma_cap_set(DMA_MEMCPY, mask);
host->dma_chan = dma_request_channel(mask, 0, NULL);
host->dma_chan = dma_request_channel(mask, NULL, NULL);
if (!host->dma_chan) {
dev_err(host->dev, "Failed to request DMA channel\n");
use_dma = 0;
Expand Down

0 comments on commit 201ab53

Please sign in to comment.