aboutsummaryrefslogtreecommitdiff
path: root/include/spl.h
diff options
context:
space:
mode:
authorSimon Glass2016-09-24 18:20:14 -0600
committerTom Rini2016-10-06 15:08:53 -0400
commitb4a6c2aae6165782dd9fa4944b38c2c2a7419af1 (patch)
treeca27b960cc3ba435180412905f4d1e6c3d16f4b4 /include/spl.h
parent2a2ee2ac35f26f6b4dae11a225c2803291dff10e (diff)
spl: Update ext functions to take an spl_image parameter
Update the ext loader to avoid using the spl_image global variable. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'include/spl.h')
-rw-r--r--include/spl.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/spl.h b/include/spl.h
index dd1d6099ce2..5ef9ae6e4bb 100644
--- a/include/spl.h
+++ b/include/spl.h
@@ -191,9 +191,11 @@ int spl_load_image_fat_os(struct blk_desc *block_dev, int partition);
void __noreturn jump_to_image_no_args(struct spl_image_info *spl_image);
/* SPL EXT image functions */
-int spl_load_image_ext(struct blk_desc *block_dev, int partition,
+int spl_load_image_ext(struct spl_image_info *spl_image,
+ struct blk_desc *block_dev, int partition,
const char *filename);
-int spl_load_image_ext_os(struct blk_desc *block_dev, int partition);
+int spl_load_image_ext_os(struct spl_image_info *spl_image,
+ struct blk_desc *block_dev, int partition);
/**
* spl_init() - Set up device tree and driver model in SPL if enabled