summaryrefslogtreecommitdiff
path: root/common/spl/spl_semihosting.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/spl/spl_semihosting.c')
-rw-r--r--common/spl/spl_semihosting.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/common/spl/spl_semihosting.c b/common/spl/spl_semihosting.c
index 2047248f39b..f36863fe48d 100644
--- a/common/spl/spl_semihosting.c
+++ b/common/spl/spl_semihosting.c
@@ -43,9 +43,7 @@ static int spl_smh_load_image(struct spl_image_info *spl_image,
}
len = ret;
- load.read = smh_fit_read;
- spl_set_bl_len(&load, 1);
- load.priv = &fd;
+ spl_load_init(&load, smh_fit_read, &fd, 1);
ret = spl_load(spl_image, bootdev, &load, len, 0);
if (ret)
log_debug("could not read %s: %d\n", filename, ret);