summaryrefslogtreecommitdiffstats
path: root/common/spl/spl_ext.c
diff options
context:
space:
mode:
authorNikita Kiryanov <nikita@compulab.co.il>2015-11-08 17:11:44 +0200
committerTom Rini <trini@konsulko.com>2015-11-18 14:50:00 -0500
commit4188ba3202172863d6034adfcac805e8bccf186a (patch)
tree0df52ad83243d28cd089069dae59eea096ca0400 /common/spl/spl_ext.c
parentfd61d39970b9901217efc7536d9f3a61b4e1752a (diff)
downloadtalos-obmc-uboot-4188ba3202172863d6034adfcac805e8bccf186a.tar.gz
talos-obmc-uboot-4188ba3202172863d6034adfcac805e8bccf186a.zip
spl: mmc: refactor device location code to its own function
Simplify spl_mmc_load_image() code by moving the part that finds the mmc device into its own function spl_mmc_find_device(), available in two flavors: DM and non-DM. This refactor fixes a bug in which an error in the device location sequence does not necessarily aborts the rest of the code. With this refactor, we fail the moment there is an error. Signed-off-by: Nikita Kiryanov <nikita@compulab.co.il> Cc: Igor Grinberg <grinberg@compulab.co.il> Cc: Paul Kocialkowski <contact@paulk.fr> Cc: Pantelis Antoniou <panto@antoniou-consulting.com> Cc: Tom Rini <trini@konsulko.com> Cc: Simon Glass <sjg@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'common/spl/spl_ext.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud