summaryrefslogtreecommitdiff
path: root/target/linux/brcm63xx/patches-4.4/425-bcm63xxpart_parse_paritions_from_dt.patch
diff options
context:
space:
mode:
authorJonas Gorski <jonas.gorski@gmail.com>2016-08-09 11:23:32 +0200
committerJonas Gorski <jonas.gorski@gmail.com>2016-08-13 15:49:35 +0200
commit0ddae04c226983e1e064d8750b8bb8724f077ad9 (patch)
tree84f901cf5188629c2bd08d24c9cf743d29f01497 /target/linux/brcm63xx/patches-4.4/425-bcm63xxpart_parse_paritions_from_dt.patch
parent86ec4104181992400363e5602c11079e79524d9c (diff)
downloadmtk-20170518-0ddae04c226983e1e064d8750b8bb8724f077ad9.zip
mtk-20170518-0ddae04c226983e1e064d8750b8bb8724f077ad9.tar.gz
mtk-20170518-0ddae04c226983e1e064d8750b8bb8724f077ad9.tar.bz2
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.patch4
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 53fc4c5..330ec1e 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);