summaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-11-12 08:27:44 -0700
committerTom Rini <trini@konsulko.com>2023-12-13 18:39:05 -0500
commit1de1a0348755ad5e57790a39059eceeb8e8aba42 (patch)
tree45caadec97e55cb6189073f78047de19713cb260 /boot
parentc659ac7cca151be29712f37fc77dd18fb4ab96c5 (diff)
downloadu-boot-1de1a0348755ad5e57790a39059eceeb8e8aba42.tar.gz
u-boot-1de1a0348755ad5e57790a39059eceeb8e8aba42.tar.bz2
u-boot-1de1a0348755ad5e57790a39059eceeb8e8aba42.zip
boot: Drop size parameter from image_setup_libfdt()
The of_size parameter is not used, so remove it. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'boot')
-rw-r--r--boot/image-board.c2
-rw-r--r--boot/image-fdt.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/boot/image-board.c b/boot/image-board.c
index bb0ca9d7f2..75f6906cd5 100644
--- a/boot/image-board.c
+++ b/boot/image-board.c
@@ -908,7 +908,7 @@ int image_setup_linux(struct bootm_headers *images)
}
if (CONFIG_IS_ENABLED(OF_LIBFDT) && of_size) {
- ret = image_setup_libfdt(images, *of_flat_tree, of_size, lmb);
+ ret = image_setup_libfdt(images, *of_flat_tree, lmb);
if (ret)
return ret;
}
diff --git a/boot/image-fdt.c b/boot/image-fdt.c
index 08fca08b71..07e5032232 100644
--- a/boot/image-fdt.c
+++ b/boot/image-fdt.c
@@ -575,12 +575,13 @@ __weak int arch_fixup_fdt(void *blob)
}
int image_setup_libfdt(struct bootm_headers *images, void *blob,
- int of_size, struct lmb *lmb)
+ struct lmb *lmb)
{
ulong *initrd_start = &images->initrd_start;
ulong *initrd_end = &images->initrd_end;
int ret = -EPERM;
int fdt_ret;
+ int of_size;
if (fdt_root(blob) < 0) {
printf("ERROR: root node setup failed\n");