diff options
author | Jonas Gorski <jonas.gorski@gmail.com> | 2017-02-07 14:20:25 +0100 |
---|---|---|
committer | Jonas Gorski <jonas.gorski@gmail.com> | 2017-06-04 11:33:44 +0200 |
commit | 31c3ac11182f24f20340ba9a8c8fa0470433145f (patch) | |
tree | 58b422a2e8c9629ddf3f35e39a7e9ce2e2e1ae81 /target | |
parent | b50fd8c2b3abdd557bd7d2bb5628f03b20801350 (diff) | |
download | upstream-31c3ac11182f24f20340ba9a8c8fa0470433145f.tar.gz upstream-31c3ac11182f24f20340ba9a8c8fa0470433145f.tar.bz2 upstream-31c3ac11182f24f20340ba9a8c8fa0470433145f.zip |
brcm63xx: do not require fixed partitions when probing from DT
Allow the parser to be invoked from DT without fixed cfe/linux/nvram
partitions. This allows flash to be probed from DT also for multi
flash-size images.
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/brcm63xx/patches-4.4/425-bcm63xxpart_parse_paritions_from_dt.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/brcm63xx/patches-4.4/425-bcm63xxpart_parse_paritions_from_dt.patch b/target/linux/brcm63xx/patches-4.4/425-bcm63xxpart_parse_paritions_from_dt.patch index 330ec1ecaf..d208a07fc7 100644 --- a/target/linux/brcm63xx/patches-4.4/425-bcm63xxpart_parse_paritions_from_dt.patch +++ b/target/linux/brcm63xx/patches-4.4/425-bcm63xxpart_parse_paritions_from_dt.patch @@ -342,7 +342,7 @@ + struct mtd_partition **pparts, + struct mtd_part_parser_data *data) +{ -+ if (mtd_get_of_node(master)) ++ if (mtd_get_of_node(master) && of_get_child_count(mtd_get_of_node(master))) + return bcm63xx_parse_cfe_partitions_of(master, pparts, data); + else + return bcm63xx_parse_cfe_partitions(master, pparts, data); |