aboutsummaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorMarek BehĂșn <marek.behun@nic.cz>2021-11-26 14:57:06 +0100
committerStefan Roese <sr@denx.de>2021-12-19 09:50:47 +0100
commit68a2faa9bc35655d0952612473f2c5d8c93b09e3 (patch)
treed038a2939b3850976885b97a5a18e77ecbb9f41a /board
parent52a26d392a45511fb5432c77d99cd3fa93c44e76 (diff)
downloadu-boot-68a2faa9bc35655d0952612473f2c5d8c93b09e3.zip
u-boot-68a2faa9bc35655d0952612473f2c5d8c93b09e3.tar.gz
u-boot-68a2faa9bc35655d0952612473f2c5d8c93b09e3.tar.bz2
treewide: Use fdt_create_phandle() where appropriate
Replace fdt_alloc_phandle() with subsequent fdt_set_phandle() by fdt_create_phandle(). Signed-off-by: Marek BehĂșn <marek.behun@nic.cz> Reviewed-by: Stefan Roese <sr@denx.de> Cc: Aaron Williams <awilliams@marvell.com> Cc: Ramon Fried <rfried.dev@gmail.com> Cc: Vladimir Oltean <vladimir.oltean@nxp.com>
Diffstat (limited to 'board')
-rw-r--r--board/Marvell/octeon_ebb7304/board.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/board/Marvell/octeon_ebb7304/board.c b/board/Marvell/octeon_ebb7304/board.c
index e8e2d54..c6c7c13 100644
--- a/board/Marvell/octeon_ebb7304/board.c
+++ b/board/Marvell/octeon_ebb7304/board.c
@@ -205,7 +205,7 @@ static int fdt_fix_mix(const void *fdt)
int env_lmac = -1;
int lmac_fdt_node = -1;
int mix_fdt_node = -1;
- int lmac_phandle;
+ unsigned int lmac_phandle;
char *compat;
/* Get the lmac for this environment variable */
@@ -229,8 +229,7 @@ static int fdt_fix_mix(const void *fdt)
}
}
- lmac_phandle = fdt_alloc_phandle((void *)fdt);
- fdt_set_phandle((void *)fdt, lmac_fdt_node, lmac_phandle);
+ lmac_phandle = fdt_create_phandle((void *)fdt, lmac_fdt_node);
/* Get the fdt mix node corresponding to this lmac */
mix_fdt_node = get_mix_fdt_node(fdt, env_node, env_lmac);