]> git.sur5r.net Git - u-boot/commit
spl: mmc: get rid of emmc boot code duplication
authorNikita Kiryanov <nikita@compulab.co.il>
Sun, 8 Nov 2015 15:11:48 +0000 (17:11 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 18 Nov 2015 19:50:02 +0000 (14:50 -0500)
commit83cdf6faa677ff8ff39d7852126aad3207fac021
tree05496748051e481b728fd3278c7d6bd95652b95a
parentf52b729393c4ec2af22f3a51a193362fc4f55e4f
spl: mmc: get rid of emmc boot code duplication

Get rid of emmc boot code duplication in spl_mmc_load_image() using a switch
case fallthrough into MMCSD_MODE_RAW. Since the #ifdef CONFIG_SUPPORT_EMMC_BOOT
check is not really necessary, remove it in the process.

No functional changes.

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>
common/spl/spl_mmc.c