summaryrefslogtreecommitdiffstats
path: root/drivers/mtd
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/maps/physmap_of.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/maps/physmap_of.c b/drivers/mtd/maps/physmap_of.c
index 3df001bfee3..096dd47b5d5 100644
--- a/drivers/mtd/maps/physmap_of.c
+++ b/drivers/mtd/maps/physmap_of.c
@@ -142,6 +142,8 @@ static int __devinit process_partitions(struct physmap_flash_info *info,
}
} else {
nr_parts = parse_obsolete_partitions(dev, info, dp);
+ if (nr_parts == -ENOENT)
+ nr_parts = 0;
}
if (nr_parts < 0)