aboutsummaryrefslogtreecommitdiffstats
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 3df001bfee36..096dd47b5d5d 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,
142 } 142 }
143 } else { 143 } else {
144 nr_parts = parse_obsolete_partitions(dev, info, dp); 144 nr_parts = parse_obsolete_partitions(dev, info, dp);
145 if (nr_parts == -ENOENT)
146 nr_parts = 0;
145 } 147 }
146 148
147 if (nr_parts < 0) 149 if (nr_parts < 0)