kernel: bump 4.9 to 4.9.206
[oweals/openwrt.git] / target / linux / generic / backport-4.9 / 065-v4.13-0007-mtd-partitions-add-support-for-partition-parsers.patch
index a28ee316fac74137293d8b7251783438b784ea04..c4c517f23845db3b882cc3b92b3083ba6e5e98b9 100644 (file)
@@ -76,9 +76,9 @@ Signed-off-by: Brian Norris <computersforpeace@gmail.com>
  static struct mtd_part *allocate_partition(struct mtd_info *parent,
                        const struct mtd_partition *part, int partno,
                        uint64_t cur_offset)
-@@ -758,6 +787,8 @@ int add_mtd_partitions(struct mtd_info *
+@@ -778,6 +807,8 @@ int add_mtd_partitions(struct mtd_info *
+               }
  
-               add_mtd_device(&slave->mtd);
                mtd_add_partition_attrs(slave);
 +              if (parts[i].types)
 +                      mtd_parse_part(slave, parts[i].types);