Browse Source

libfdt: Use fdt_find_max_phandle()

Use the fdt_find_max_phandle() function instead of the deprecated
fdt_get_max_phandle() function.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Message-Id: <20190326153302.17109-2-thierry.reding@gmail.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
main
Thierry Reding 6 years ago committed by David Gibson
parent
commit
7dfb61ba96
  1. 6
      libfdt/fdt_overlay.c

6
libfdt/fdt_overlay.c

@ -863,12 +863,16 @@ static int overlay_symbol_update(void *fdt, void *fdto) @@ -863,12 +863,16 @@ static int overlay_symbol_update(void *fdt, void *fdto)

int fdt_overlay_apply(void *fdt, void *fdto)
{
uint32_t delta = fdt_get_max_phandle(fdt);
uint32_t delta;
int ret;

FDT_RO_PROBE(fdt);
FDT_RO_PROBE(fdto);

ret = fdt_find_max_phandle(fdt, &delta);
if (ret)
goto err;

ret = overlay_adjust_local_phandles(fdto, delta);
if (ret)
goto err;

Loading…
Cancel
Save