mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
fdtdec: Use fdt_setprop_u32() for fdtdec_set_phandle()
The fdt_setprop_u32() function does everything that we need, so we really only use the function as a convenience wrapper, in which case it can simply be a static inline function. Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
parent
f2100f6f77
commit
d81d96901e
2 changed files with 4 additions and 8 deletions
|
@ -1261,13 +1261,6 @@ __weak void *board_fdt_blob_setup(void)
|
|||
}
|
||||
#endif
|
||||
|
||||
int fdtdec_set_phandle(void *blob, int node, uint32_t phandle)
|
||||
{
|
||||
fdt32_t value = cpu_to_fdt32(phandle);
|
||||
|
||||
return fdt_setprop(blob, node, "phandle", &value, sizeof(value));
|
||||
}
|
||||
|
||||
static int fdtdec_init_reserved_memory(void *blob)
|
||||
{
|
||||
int na, ns, node, err;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue