summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/onenand/generic.c
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.cz>2008-07-07 11:30:31 +0200
committerJiri Kosina <jkosina@suse.cz>2008-07-07 11:30:31 +0200
commitd6d6a86e14a6b5a26c785b45268874a8f7a52b4d (patch)
treecd49bacdc4ac89a9317501bc9ebe87c3b6320e3e /drivers/mtd/onenand/generic.c
parentf38bb7de289f5c15e287386d35e9c325f1062c49 (diff)
parent1b40a895df6c7d5a80e71f65674060b03d84bbef (diff)
downloadkernel-crypto-d6d6a86e14a6b5a26c785b45268874a8f7a52b4d.tar.gz
kernel-crypto-d6d6a86e14a6b5a26c785b45268874a8f7a52b4d.tar.xz
kernel-crypto-d6d6a86e14a6b5a26c785b45268874a8f7a52b4d.zip
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'drivers/mtd/onenand/generic.c')
-rw-r--r--drivers/mtd/onenand/generic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/onenand/generic.c b/drivers/mtd/onenand/generic.c
index 3d44d040a47..ad81ab8e95e 100644
--- a/drivers/mtd/onenand/generic.c
+++ b/drivers/mtd/onenand/generic.c
@@ -76,7 +76,7 @@ static int __devinit generic_onenand_probe(struct device *dev)
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