powerpc/85xx: use fdt_create_phandle() to create the Fman firmware phandles
Function fdt_create_phandle() conveniently creates new phandle properties using both "linux,phandle" and "phandle", so it should be used by all code that wants to create a phandle. The Fman firmware code, which embeds an Fman firmware into the device tree, was creating the phandle properties manually. Instead, change it to use fdt_create_phandle(). Signed-off-by: Timur Tabi <timur@freescale.com>
This commit is contained in:
parent
50bf17bd15
commit
a2c1229c39
@ -504,9 +504,8 @@ void fdt_fixup_fman_firmware(void *blob)
|
|||||||
fdt_strerror(rc));
|
fdt_strerror(rc));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
phandle = fdt_alloc_phandle(blob);
|
phandle = fdt_create_phandle(blob, fwnode);
|
||||||
rc = fdt_setprop_cell(blob, fwnode, "linux,phandle", phandle);
|
if (!phandle) {
|
||||||
if (rc < 0) {
|
|
||||||
char s[64];
|
char s[64];
|
||||||
fdt_get_path(blob, fwnode, s, sizeof(s));
|
fdt_get_path(blob, fwnode, s, sizeof(s));
|
||||||
printf("Could not add phandle property to node %s: %s\n", s,
|
printf("Could not add phandle property to node %s: %s\n", s,
|
||||||
|
Loading…
Reference in New Issue
Block a user