From: Nicolas Ferre Date: Wed, 29 Jun 2011 16:41:16 +0000 (+0200) Subject: mtd: atmel_nand: fix wrong use of 0 as NULL X-Git-Tag: v3.12-rc1~4484^2~74 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=201ab536ac205a2787f8eac2eedc697616f99e04;p=kernel%2Fkernel-generic.git mtd: atmel_nand: fix wrong use of 0 as NULL Fixing this error: atmel_nand.c:718:20: warning: Using plain integer as NULL pointer Signed-off-by: Nicolas Ferre Acked-by: Jean-Christophe PLAGNIOL-VILLARD Signed-off-by: Artem Bityutskiy --- diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c index b138143..ee6e26e 100644 --- a/drivers/mtd/nand/atmel_nand.c +++ b/drivers/mtd/nand/atmel_nand.c @@ -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;