mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-24 23:53:02 +00:00
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>
This commit is contained in:
parent
b50fd8c2b3
commit
31c3ac1118
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user