2011-06-29 15:34:06

by Nicolas Ferre

[permalink] [raw]
Subject: [PATCH] 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 <[email protected]>
---
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


Subject: Re: [PATCH] MTD: atmel_nand: fix wrong use of 0 as NULL

On 18:41 Wed 29 Jun , Nicolas Ferre wrote:
> Fixing this error:
> atmel_nand.c:718:20: warning: Using plain integer as NULL pointer
>
> Signed-off-by: Nicolas Ferre <[email protected]>
Acked-by: Jean-Christophe PLAGNIOL-VILLARD <[email protected]>

Best Regards,
J.

2011-06-30 11:48:29

by Artem Bityutskiy

[permalink] [raw]
Subject: Re: [PATCH] MTD: atmel_nand: fix wrong use of 0 as NULL

On Wed, 2011-06-29 at 18:41 +0200, Nicolas Ferre wrote:
> Fixing this error:
> atmel_nand.c:718:20: warning: Using plain integer as NULL pointer
>
> Signed-off-by: Nicolas Ferre <[email protected]>

Pushed to l2-mtd-2.6.git, thanks!

--
Best Regards,
Artem Bityutskiy