mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
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>
This commit is contained in:
parent
a807ab3303
commit
ecdfd69a4b
16 changed files with 71 additions and 48 deletions
|
@ -13,7 +13,7 @@
|
|||
#include <fdt.h>
|
||||
|
||||
#if defined(CONFIG_SPL_NAND_RAW_ONLY)
|
||||
int spl_nand_load_image(void)
|
||||
int spl_nand_load_image(struct spl_boot_device *bootdev)
|
||||
{
|
||||
nand_init();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue