diff options
author | Brian Norris <computersforpeace@gmail.com> | 2013-09-20 15:44:26 -0400 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2014-01-07 13:07:35 -0500 |
commit | 8b3ae733534a153756f142a3e8573a1ae967cf8b (patch) | |
tree | 75c1c31298f03680d5025cecad047dddf00f35e5 /drivers/mtd | |
parent | cf0e4d2b3faf9494bb6bd32141c0dcfceced1746 (diff) |
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')
-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) | |||
58 | goto out_release_mem_region; | 58 | goto out_release_mem_region; |
59 | } | 59 | } |
60 | 60 | ||
61 | info->onenand.mmcontrol = pdata ? pdata->mmcontrol : 0; | 61 | info->onenand.mmcontrol = pdata ? pdata->mmcontrol : NULL; |
62 | info->onenand.irq = platform_get_irq(pdev, 0); | 62 | info->onenand.irq = platform_get_irq(pdev, 0); |
63 | 63 | ||
64 | info->mtd.name = dev_name(&pdev->dev); | 64 | info->mtd.name = dev_name(&pdev->dev); |