diff options
author | Brian Norris <computersforpeace@gmail.com> | 2013-09-20 21:44:26 +0200 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-01-07 19:07:35 +0100 |
commit | 8b3ae733534a153756f142a3e8573a1ae967cf8b (patch) | |
tree | 75c1c31298f03680d5025cecad047dddf00f35e5 /drivers/mtd/onenand | |
parent | mtd: omap2: use nand_base defaults for polled I/O (diff) | |
download | linux-8b3ae733534a153756f142a3e8573a1ae967cf8b.tar.xz linux-8b3ae733534a153756f142a3e8573a1ae967cf8b.zip |
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); |