summaryrefslogtreecommitdiff
path: root/boot/image-board.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-11-18 14:05:11 -0700
committerTom Rini <trini@konsulko.com>2023-12-13 11:51:24 -0500
commit745367b218c024dfcde72c37d15da88918e37e18 (patch)
treecb569e0473b5479be732720d661d9fdafadc17f1 /boot/image-board.c
parent0aa923aba53ecf6a9baf36dc6e81cd25c41cd718 (diff)
bootm: Reduce arguments to boot_get_fpga()
This function only uses two arguments. The 'arch' always has a constant value, so drop it. This simplifies the function call. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'boot/image-board.c')
-rw-r--r--boot/image-board.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/boot/image-board.c b/boot/image-board.c
index 60e514fc150..b926275ec91 100644
--- a/boot/image-board.c
+++ b/boot/image-board.c
@@ -616,8 +616,7 @@ int boot_get_setup(struct bootm_headers *images, u8 arch,
return boot_get_setup_fit(images, arch, setup_start, setup_len);
}
-int boot_get_fpga(int argc, char *const argv[], struct bootm_headers *images,
- u8 arch, const ulong *ld_start, ulong * const ld_len)
+int boot_get_fpga(struct bootm_headers *images)
{
ulong tmp_img_addr, img_data, img_len;
void *buf;
@@ -659,7 +658,7 @@ int boot_get_fpga(int argc, char *const argv[], struct bootm_headers *images,
tmp_img_addr,
(const char **)&uname,
&images->fit_uname_cfg,
- arch,
+ IH_ARCH_DEFAULT,
IH_TYPE_FPGA,
BOOTSTAGE_ID_FPGA_INIT,
FIT_LOAD_OPTIONAL_NON_ZERO,