From 2a2ee2ac35f26f6b4dae11a225c2803291dff10e Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sat, 24 Sep 2016 18:20:13 -0600 Subject: spl: Pass spl_image as a parameter to load_image() methods Rather than having a global variable, pass the spl_image as a parameter. This avoids BSS use, and makes it clearer what the function is actually doing. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- common/spl/spl_sata.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'common/spl/spl_sata.c') diff --git a/common/spl/spl_sata.c b/common/spl/spl_sata.c index 1a21c05..19b5ba5 100644 --- a/common/spl/spl_sata.c +++ b/common/spl/spl_sata.c @@ -20,7 +20,8 @@ DECLARE_GLOBAL_DATA_PTR; -static int spl_sata_load_image(struct spl_boot_device *bootdev) +static int spl_sata_load_image(struct spl_image_info *spl_image, + struct spl_boot_device *bootdev) { int err; struct blk_desc *stor_dev; -- cgit v1.1