aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Keeping <john@metanate.com>2022-04-20 11:31:11 +0100
committerTom Rini <trini@konsulko.com>2022-05-06 14:39:15 -0400
commit14b711b444312acb22a44d2c31df42700add81e8 (patch)
treef0fcecbd2a4b3a7aa5570b278bdd4dad0b2ae472
parentdb03c2530ad13b1615015cd6629da857bd26c999 (diff)
downloadu-boot-WIP/2022-05-06-assorted-updates.zip
u-boot-WIP/2022-05-06-assorted-updates.tar.gz
u-boot-WIP/2022-05-06-assorted-updates.tar.bz2
fdt: don't set linux,phandleWIP/2022-05-06-assorted-updates
This has been deprecated for over 10 years and everything now uses the plain "phandle" property in preference. There's no need to set linux,phandle when creating phandles for nodes that do not have one. dtc changed the default to creating just phandle in version 1.4.5 released in September 2017 with the justification that the new style had already been supported for 7 years by that point (see dtc commit 0016f8c ("dtc: change default phandles to ePAPR style instead of both")). Signed-off-by: John Keeping <john@metanate.com>
-rw-r--r--common/fdt_support.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/common/fdt_support.c b/common/fdt_support.c
index 8662bd2..7e9e654 100644
--- a/common/fdt_support.c
+++ b/common/fdt_support.c
@@ -1544,14 +1544,6 @@ int fdt_set_phandle(void *fdt, int nodeoffset, uint32_t phandle)
#endif
ret = fdt_setprop_cell(fdt, nodeoffset, "phandle", phandle);
- if (ret < 0)
- return ret;
-
- /*
- * For now, also set the deprecated "linux,phandle" property, so that we
- * don't break older kernels.
- */
- ret = fdt_setprop_cell(fdt, nodeoffset, "linux,phandle", phandle);
return ret;
}