diff options
author | Jonas Gorski <jonas.gorski@gmail.com> | 2016-08-09 11:23:32 +0200 |
---|---|---|
committer | Jonas Gorski <jonas.gorski@gmail.com> | 2016-08-13 15:49:35 +0200 |
commit | 0ddae04c226983e1e064d8750b8bb8724f077ad9 (patch) | |
tree | 84f901cf5188629c2bd08d24c9cf743d29f01497 /target/linux/brcm63xx/patches-4.4/425-bcm63xxpart_parse_paritions_from_dt.patch | |
parent | 86ec4104181992400363e5602c11079e79524d9c (diff) | |
download | upstream-0ddae04c226983e1e064d8750b8bb8724f077ad9.tar.gz upstream-0ddae04c226983e1e064d8750b8bb8724f077ad9.tar.bz2 upstream-0ddae04c226983e1e064d8750b8bb8724f077ad9.zip |
brcm63xx: backport mtd of node changes from upstream
Should fix parser data containing uninitialized values for of probed
physmap flashes, which could break e.g. the redboot parser.
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Diffstat (limited to 'target/linux/brcm63xx/patches-4.4/425-bcm63xxpart_parse_paritions_from_dt.patch')
-rw-r--r-- | target/linux/brcm63xx/patches-4.4/425-bcm63xxpart_parse_paritions_from_dt.patch | 4 |
1 files changed, 2 insertions, 2 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 53fc4c5d23..330ec1ecaf 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 @@ -155,7 +155,7 @@ + struct mtd_partition **pparts, + struct mtd_part_parser_data *data) +{ -+ struct device_node *dp = data->of_node; ++ struct device_node *dp = mtd_get_of_node(master); + struct device_node *pp; + int i, nr_parts = 0; + const char *partname; @@ -342,7 +342,7 @@ + struct mtd_partition **pparts, + struct mtd_part_parser_data *data) +{ -+ if (data && data->of_node) ++ if (mtd_get_of_node(master)) + return bcm63xx_parse_cfe_partitions_of(master, pparts, data); + else + return bcm63xx_parse_cfe_partitions(master, pparts, data); |