mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
fdt: don't set linux,phandle
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>
This commit is contained in:
parent
b6b6a90646
commit
9ac4c2bfe9
1 changed files with 0 additions and 8 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue