summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/maps
diff options
context:
space:
mode:
authorKyungmin Park <kyungmin.park@samsung.com>2008-05-07 11:54:10 +0900
committerDavid Woodhouse <dwmw2@infradead.org>2008-06-05 07:51:13 +0100
commitba75321193900a236bc5bbc29145e1039f74eb1b (patch)
treec3c81598d120b3cadc8b2316f5ceb003ae7ab58b /drivers/mtd/maps
parent9b62d864314736fb6cc5c5db5b964d4a3c093424 (diff)
downloadop-kernel-dev-ba75321193900a236bc5bbc29145e1039f74eb1b.zip
op-kernel-dev-ba75321193900a236bc5bbc29145e1039f74eb1b.tar.gz
[MTD] [MAPS] Fix cmdlineparse handling in mapping files
Now it returns the 0 if cmdlineparse not supplied. Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
Diffstat (limited to 'drivers/mtd/maps')
-rw-r--r--drivers/mtd/maps/omap_nor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/maps/omap_nor.c b/drivers/mtd/maps/omap_nor.c
index 240b0e2..c12d805 100644
--- a/drivers/mtd/maps/omap_nor.c
+++ b/drivers/mtd/maps/omap_nor.c
@@ -110,7 +110,7 @@ static int __init omapflash_probe(struct platform_device *pdev)
err = parse_mtd_partitions(info->mtd, part_probes, &info->parts, 0);
if (err > 0)
add_mtd_partitions(info->mtd, info->parts, err);
- else if (err < 0 && pdata->parts)
+ else if (err <= 0 && pdata->parts)
add_mtd_partitions(info->mtd, pdata->parts, pdata->nr_parts);
else
#endif
OpenPOWER on IntegriCloud