spl: Convert spl_nand_load_image() to use linker list
authorSimon Glass <sjg@chromium.org>
Sun, 25 Sep 2016 00:20:02 +0000 (18:20 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 6 Oct 2016 19:06:57 +0000 (15:06 -0400)
commitd5c2b11ce40f8ca849008938515e742e6b7efc18
tree96a7b6c6143ef47e11eaf06ca07e615d10f73d2e
parent7d7dd821b0921d762a1dbfae48f2c3aa3ff29df6
spl: Convert spl_nand_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_nand.c
include/spl.h