diff options
author | Simon Glass <sjg@chromium.org> | 2015-12-02 10:59:13 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2015-12-05 18:22:34 -0500 |
commit | b4857aa90105ea85bf029f8eb99e72fbadc0e2d0 (patch) | |
tree | 1e288524936ab3740e167d25be58cfe311416d03 /fs/sandbox | |
parent | 99c7a51a249292ba98889b253659b27ed089bd7e (diff) | |
download | u-boot-imx-b4857aa90105ea85bf029f8eb99e72fbadc0e2d0.zip u-boot-imx-b4857aa90105ea85bf029f8eb99e72fbadc0e2d0.tar.gz u-boot-imx-b4857aa90105ea85bf029f8eb99e72fbadc0e2d0.tar.bz2 |
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>
Diffstat (limited to 'fs/sandbox')
0 files changed, 0 insertions, 0 deletions