mtd: onenand: fix warning (integer used as pointer)
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Tue Jan 28 00:59:06 EST 2014
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=8b3ae733534a153756f142a3e8573a1ae967cf8b
Commit: 8b3ae733534a153756f142a3e8573a1ae967cf8b
Parent: cf0e4d2b3faf9494bb6bd32141c0dcfceced1746
Author: Brian Norris <computersforpeace at gmail.com>
AuthorDate: Fri Sep 20 12:44:26 2013 -0700
Committer: Brian Norris <computersforpeace at gmail.com>
CommitDate: Tue Jan 7 10:07:35 2014 -0800
mtd: onenand: fix warning (integer used as pointer)
Fixes this sparse warning:
CHECK drivers/mtd/onenand/generic.c
drivers/mtd/onenand/generic.c:61:62: warning: Using plain integer as NULL pointer
Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
drivers/mtd/onenand/generic.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mtd/onenand/generic.c b/drivers/mtd/onenand/generic.c
index 63699ff..8e1919b 100644
--- a/drivers/mtd/onenand/generic.c
+++ b/drivers/mtd/onenand/generic.c
@@ -58,7 +58,7 @@ static int generic_onenand_probe(struct platform_device *pdev)
goto out_release_mem_region;
}
- info->onenand.mmcontrol = pdata ? pdata->mmcontrol : 0;
+ info->onenand.mmcontrol = pdata ? pdata->mmcontrol : NULL;
info->onenand.irq = platform_get_irq(pdev, 0);
info->mtd.name = dev_name(&pdev->dev);
More information about the linux-mtd-cvs
mailing list