diff options
author | Tom Rini <trini@konsulko.com> | 2024-08-23 15:59:03 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-08-23 15:59:03 -0600 |
commit | 5948fd0ae7a86af6e2b6a5227005b92ad2ab67d8 (patch) | |
tree | e531925228a2bf543e8376de5ae1a625d9a8d0aa /arch/sandbox/cpu/spl.c | |
parent | b8f0f8db23f77a5e2437c7df411a78da71fab13a (diff) | |
parent | d938743d15a9bbe46353d15f16fb4b764e1462b7 (diff) |
Merge patch series "spl: mmc: Some tweaks for SPL, particularly with MMC"
Simon Glass <sjg@chromium.org> says:
This series includes various minor fixes and tweaks found when trying
to reduce the size of MMC code in SPL.
Diffstat (limited to 'arch/sandbox/cpu/spl.c')
-rw-r--r-- | arch/sandbox/cpu/spl.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/sandbox/cpu/spl.c b/arch/sandbox/cpu/spl.c index bcb1ca10a51..cc46965b73b 100644 --- a/arch/sandbox/cpu/spl.c +++ b/arch/sandbox/cpu/spl.c @@ -221,9 +221,8 @@ int sandbox_spl_load_fit(char *fname, int maxlen, struct spl_image_info *image) int ret; int fd; - memset(&load, '\0', sizeof(load)); - spl_set_bl_len(&load, IS_ENABLED(CONFIG_SPL_LOAD_BLOCK) ? 512 : 1); - load.read = read_fit_image; + spl_load_init(&load, read_fit_image, &load_ctx, + IS_ENABLED(CONFIG_SPL_LOAD_BLOCK) ? 512 : 1); ret = sandbox_find_next_phase(fname, maxlen, true); if (ret) { |