diff options
author | Brian Norris <computersforpeace@gmail.com> | 2013-09-20 12:44:26 -0700 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-01-07 10:07:35 -0800 |
commit | 8b3ae733534a153756f142a3e8573a1ae967cf8b (patch) | |
tree | 75c1c31298f03680d5025cecad047dddf00f35e5 /drivers/mtd/onenand | |
parent | cf0e4d2b3faf9494bb6bd32141c0dcfceced1746 (diff) | |
download | op-kernel-dev-8b3ae733534a153756f142a3e8573a1ae967cf8b.zip op-kernel-dev-8b3ae733534a153756f142a3e8573a1ae967cf8b.tar.gz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |