u-boot/common/spl
Simon Glass b4857aa901 spl: mmc: Unify non/driver model spl_mmc_find_device()
It is risky to have two different functions with much the same code. Future
authors may update one but not the other. It is hard to see which parts are
the same and which are different.

Unify the functions and drop the differences that are not really needed.

Note that one puts() becomes printf() as Tom mentioned that this does not
affect image size:

https://patchwork.ozlabs.org/patch/537276/

Note: It would be better to have an empty printf() and avoid the #ifdef for
CONFIG_SPL_LIBCOMMON_SUPPORT.

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Michal Simek <michal.simek@xilinx.com>
2015-12-05 18:22:34 -05:00
..
Makefile spl: Add EXT support to SPL 2014-10-27 17:54:03 -04:00
spl.c spl: mmc: add support for BOOT_DEVICE_MMC2 2015-11-18 14:50:05 -05:00
spl_ext.c spl: mmc: remove #ifdef CONFIG_SPL_OS_BOOT check 2015-11-18 14:50:00 -05:00
spl_fat.c spl: mmc: remove #ifdef CONFIG_SPL_OS_BOOT check 2015-11-18 14:50:00 -05:00
spl_mmc.c spl: mmc: Unify non/driver model spl_mmc_find_device() 2015-12-05 18:22:34 -05:00
spl_nand.c spl: change return values of spl_*_load_image() 2015-11-18 14:50:02 -05:00
spl_net.c spl: change return values of spl_*_load_image() 2015-11-18 14:50:02 -05:00
spl_nor.c spl: change return values of spl_*_load_image() 2015-11-18 14:50:02 -05:00
spl_onenand.c spl: change return values of spl_*_load_image() 2015-11-18 14:50:02 -05:00
spl_sata.c spl: change return values of spl_*_load_image() 2015-11-18 14:50:02 -05:00
spl_usb.c spl: change return values of spl_*_load_image() 2015-11-18 14:50:02 -05:00
spl_ymodem.c spl: change return values of spl_*_load_image() 2015-11-18 14:50:02 -05:00