diff options
author | Brian Norris <computersforpeace@gmail.com> | 2015-12-09 18:59:45 +0100 |
---|---|---|
committer | Brian Norris <computersforpeace@gmail.com> | 2015-12-09 19:00:34 +0100 |
commit | 2027cba66a0591e65a64d3ecfe8a3aa2f55a681b (patch) | |
tree | cef84a83fe8b32344331020bcf01b42f28a106c5 /drivers/mtd/ofpart.c | |
parent | Merge arch/{arm,blackfin,cris,mips}/ refactoring patches into MTD dev (diff) | |
parent | doc: dt: mtd: partitions: add compatible property to "partitions" node (diff) | |
download | linux-2027cba66a0591e65a64d3ecfe8a3aa2f55a681b.tar.xz linux-2027cba66a0591e65a64d3ecfe8a3aa2f55a681b.zip |
mtd: merge for-4.4 development into -next development
A few MAINTAINERS updates, and some DT binding/documentation fixups.
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/ofpart.c')
-rw-r--r-- | drivers/mtd/ofpart.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/mtd/ofpart.c b/drivers/mtd/ofpart.c index 478538100ddd..904645143397 100644 --- a/drivers/mtd/ofpart.c +++ b/drivers/mtd/ofpart.c @@ -44,10 +44,18 @@ static int parse_ofpart_partitions(struct mtd_info *master, ofpart_node = of_get_child_by_name(mtd_node, "partitions"); if (!ofpart_node) { - pr_warn("%s: 'partitions' subnode not found on %s. Trying to parse direct subnodes as partitions.\n", - master->name, mtd_node->full_name); + /* + * We might get here even when ofpart isn't used at all (e.g., + * when using another parser), so don't be louder than + * KERN_DEBUG + */ + pr_debug("%s: 'partitions' subnode not found on %s. Trying to parse direct subnodes as partitions.\n", + 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 */ |