]> git.dujemihanovic.xyz Git - u-boot.git/commit
spl: Convert spl_net_load_image() to use linker list
authorSimon Glass <sjg@chromium.org>
Sun, 25 Sep 2016 00:20:11 +0000 (18:20 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 6 Oct 2016 19:08:18 +0000 (15:08 -0400)
commit7ec0389354b8fd27ed1d1fb2d4f451e74f40534c
tree8e3be70d8af3e9178c35840b5b8dfa04a160e0c5
parentea022a3775a723a90ee91dfa100ac95a5379e93d
spl: Convert spl_net_load_image() to use linker list

Add a linker list declaration for this method and remove the explicit
switch() code. We need two variants - one for BOOT_DEVICE_CPGMAC and one for
BOOT_DEVICE_USBETH.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
common/spl/spl.c
common/spl/spl_net.c
include/spl.h