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 /common/spl/spl_net.c | |
parent | a807ab33035fe2e9b63aac2e7475525ca8d90adc (diff) | |
download | u-boot-ecdfd69a4be55363589e8185ff151b02e6c36cfa.tar.gz |
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 'common/spl/spl_net.c')
-rw-r--r-- | common/spl/spl_net.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/spl/spl_net.c b/common/spl/spl_net.c index f417d177eb..730f88e0d6 100644 --- a/common/spl/spl_net.c +++ b/common/spl/spl_net.c @@ -14,7 +14,7 @@ DECLARE_GLOBAL_DATA_PTR; -int spl_net_load_image(const char *device) +int spl_net_load_image(struct spl_boot_device *bootdev) { int rv; @@ -27,8 +27,8 @@ int spl_net_load_image(const char *device) printf("No Ethernet devices found\n"); return -ENODEV; } - if (device) - setenv("ethact", device); + if (bootdev->boot_device_name) + setenv("ethact", bootdev->boot_device_name); rv = net_loop(BOOTP); if (rv < 0) { printf("Problem booting with BOOTP\n"); |