generic: 6.1: refresh backport patches
[openwrt/staging/hauke.git] / target / linux / generic / backport-6.1 / 406-v6.2-0001-mtd-core-simplify-a-bit-code-find-partition-matching.patch
index 7e9645ea98d6a9f66cd9c18811ff2d81ceb73690..eb6be5ed00e2f0928f924b396885beba80a685d5 100644 (file)
@@ -21,7 +21,7 @@ Link: https://lore.kernel.org/linux-mtd/20221004083710.27704-1-zajec5@gmail.com
 
 --- a/drivers/mtd/mtdcore.c
 +++ b/drivers/mtd/mtdcore.c
-@@ -569,18 +569,16 @@ static void mtd_check_of_node(struct mtd
+@@ -551,18 +551,16 @@ static void mtd_check_of_node(struct mtd
        struct device_node *partitions, *parent_dn, *mtd_dn = NULL;
        const char *pname, *prefix = "partition-";
        int plen, mtd_name_len, offset, prefix_len;
@@ -42,7 +42,7 @@ Link: https://lore.kernel.org/linux-mtd/20221004083710.27704-1-zajec5@gmail.com
        if (!parent_dn)
                return;
  
-@@ -593,15 +591,15 @@ static void mtd_check_of_node(struct mtd
+@@ -575,15 +573,15 @@ static void mtd_check_of_node(struct mtd
  
        /* Search if a partition is defined with the same name */
        for_each_child_of_node(partitions, mtd_dn) {