]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/mtd/ofpart.c
doc: dt: mtd: partitions: add compatible property to "partitions" node
[karo-tx-linux.git] / drivers / mtd / ofpart.c
index 3e9c5857c9913dd63c269faae8f34fbc6f7f4c00..9ed6038e47d210df74ec678de7cf8220797bf815 100644 (file)
@@ -55,6 +55,9 @@ static int parse_ofpart_partitions(struct mtd_info *master,
                         master->name, mtd_node->full_name);
                ofpart_node = mtd_node;
                dedicated = false;
+       } else if (!of_device_is_compatible(ofpart_node, "fixed-partitions")) {
+               /* The 'partitions' subnode might be used by another parser */
+               return 0;
        }
 
        /* First count the subnodes */