* [PATCH] MTD: atmel_nand: fix wrong use of 0 as NULL
@ 2011-06-29 16:41 Nicolas Ferre
2011-06-30 1:06 ` Jean-Christophe PLAGNIOL-VILLARD
2011-06-30 11:49 ` Artem Bityutskiy
0 siblings, 2 replies; 3+ messages in thread
From: Nicolas Ferre @ 2011-06-29 16:41 UTC (permalink / raw)
To: linux-arm-kernel
Fixing this error:
atmel_nand.c:718:20: warning: Using plain integer as NULL pointer
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.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 b300705..bbdf062 100644
--- a/drivers/mtd/nand/atmel_nand.c
+++ b/drivers/mtd/nand/atmel_nand.c
@@ -593,7 +593,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;
--
1.7.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-06-30 11:49 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-29 16:41 [PATCH] MTD: atmel_nand: fix wrong use of 0 as NULL Nicolas Ferre
2011-06-30 1:06 ` Jean-Christophe PLAGNIOL-VILLARD
2011-06-30 11:49 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).