diff options
author | Thierry Reding <treding@nvidia.com> | 2019-04-15 10:08:20 +0200 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2019-04-23 20:26:43 -0600 |
commit | d81d96901eacfc9ffbe7c26a8d9b55d02b3fcb0c (patch) | |
tree | 8caa202a32ec5f9bc121180dc8b3f6444c314080 /lib/fdtdec.c | |
parent | f2100f6f77212e2a5b3db165e84eed911be5c3f6 (diff) | |
download | u-boot-d81d96901eacfc9ffbe7c26a8d9b55d02b3fcb0c.tar.gz |
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>
Diffstat (limited to 'lib/fdtdec.c')
-rw-r--r-- | lib/fdtdec.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/fdtdec.c b/lib/fdtdec.c index 9c9c302347..fea44a9a8c 100644 --- a/lib/fdtdec.c +++ b/lib/fdtdec.c @@ -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; |