diff options
author | Brian Norris <computersforpeace@gmail.com> | 2013-09-20 23:44:26 +0400 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-01-07 22:07:35 +0400 |
commit | 8b3ae733534a153756f142a3e8573a1ae967cf8b (patch) | |
tree | 75c1c31298f03680d5025cecad047dddf00f35e5 /drivers/mtd/onenand | |
parent | cf0e4d2b3faf9494bb6bd32141c0dcfceced1746 (diff) | |
download | linux-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.c | 2 |
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); |