mtd: atmel_nand: fix wrong use of 0 as NULL

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Mon Nov 7 11:59:25 EST 2011


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=201ab536ac205a2787f8eac2eedc697616f99e04
Commit:     201ab536ac205a2787f8eac2eedc697616f99e04
Parent:     08c248fbe2bfc0326255c5b0cb3952166234d59b
Author:     Nicolas Ferre <nicolas.ferre at atmel.com>
AuthorDate: Wed Jun 29 18:41:16 2011 +0200
Committer:  Artem Bityutskiy <artem.bityutskiy at intel.com>
CommitDate: Sun Sep 11 15:02:14 2011 +0300

    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 <nicolas.ferre at atmel.com>
    Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
    Signed-off-by: Artem Bityutskiy <dedekind1 at gmail.com>
---
 drivers/mtd/nand/atmel_nand.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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;



More information about the linux-mtd-cvs mailing list