summaryrefslogtreecommitdiff
path: root/drivers/mtd/onenand
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2013-09-20 23:44:26 +0400
committerBrian Norris <computersforpeace@gmail.com>2014-01-07 22:07:35 +0400
commit8b3ae733534a153756f142a3e8573a1ae967cf8b (patch)
tree75c1c31298f03680d5025cecad047dddf00f35e5 /drivers/mtd/onenand
parentcf0e4d2b3faf9494bb6bd32141c0dcfceced1746 (diff)
downloadlinux-8b3ae733534a153756f142a3e8573a1ae967cf8b.tar.xz
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@gmail.com>
Diffstat (limited to 'drivers/mtd/onenand')
-rw-r--r--drivers/mtd/onenand/generic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/onenand/generic.c b/drivers/mtd/onenand/generic.c
index 63699fffc96d..8e1919b6f074 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);