diff options
author | Simon Glass <sjg@chromium.org> | 2016-09-24 18:19:57 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-10-06 14:53:36 -0400 |
commit | ecdfd69a4be55363589e8185ff151b02e6c36cfa (patch) | |
tree | b625ae78bfe96236f62320061a1a667f4d8e446d /drivers/mtd | |
parent | a807ab33035fe2e9b63aac2e7475525ca8d90adc (diff) | |
download | u-boot-imx-ecdfd69a4be55363589e8185ff151b02e6c36cfa.zip u-boot-imx-ecdfd69a4be55363589e8185ff151b02e6c36cfa.tar.gz u-boot-imx-ecdfd69a4be55363589e8185ff151b02e6c36cfa.tar.bz2 |
spl: Convert boot_device into a struct
At present some spl_xxx_load_image() functions take a parameter and some
don't. Of those that do, most take an integer but one takes a string.
Convert this parameter into a struct so that we can pass all functions the
same thing. This will allow us to use a common function signature.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/spi/spi_spl_load.c | 2 | ||||
-rw-r--r-- | drivers/mtd/spi/sunxi_spi_spl.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/spi/spi_spl_load.c b/drivers/mtd/spi/spi_spl_load.c index ac5eae3..e4cc0d0 100644 --- a/drivers/mtd/spi/spi_spl_load.c +++ b/drivers/mtd/spi/spi_spl_load.c @@ -65,7 +65,7 @@ static ulong spl_spi_fit_read(struct spl_load_info *load, ulong sector, * configured and available since this code loads the main U-Boot image * from SPI into SDRAM and starts it from there. */ -int spl_spi_load_image(void) +int spl_spi_load_image(struct spl_boot_device *bootdev) { int err = 0; struct spi_flash *flash; diff --git a/drivers/mtd/spi/sunxi_spi_spl.c b/drivers/mtd/spi/sunxi_spi_spl.c index a992bfa..767959c 100644 --- a/drivers/mtd/spi/sunxi_spi_spl.c +++ b/drivers/mtd/spi/sunxi_spi_spl.c @@ -262,7 +262,7 @@ static void spi0_read_data(void *buf, u32 addr, u32 len) /*****************************************************************************/ -int spl_spi_load_image(void) +int spl_spi_load_image(struct spl_boot_device *bootdev) { int err; struct image_header *header; |