spl: Convert spl_onenand_load_image() to use linker list
authorSimon Glass <sjg@chromium.org>
Sun, 25 Sep 2016 00:20:03 +0000 (18:20 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 6 Oct 2016 19:06:58 +0000 (15:06 -0400)
commitafa6e6c48845bac39a73b41012e8d7a53b13598d
tree9d65158d116c515f5b3cccc74898f97e5279a477
parentd5c2b11ce40f8ca849008938515e742e6b7efc18
spl: Convert spl_onenand_load_image() to use linker list

Add a linker list declaration for this method and remove the explicit
switch() code.

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