]> git.sur5r.net Git - u-boot/commit
cmd_mmc: Use init_mmc_device() from do_mmc_rescan()
authorStephen Warren <swarren@nvidia.com>
Fri, 23 May 2014 19:24:46 +0000 (13:24 -0600)
committerPantelis Antoniou <panto@antoniou-consulting.com>
Thu, 12 Jun 2014 12:21:12 +0000 (15:21 +0300)
commit941944e445193a07dea77787680666db049a14dc
treea6828c04d1d7bd7715d47ac4fac822863ad21e93
parent1ae24a5041b6fab7cc986bda7fec92b3d643ac96
cmd_mmc: Use init_mmc_device() from do_mmc_rescan()

The body of init_mmc_device() is now identical to that of do_mmc_rescan()
except for the error codes returned. Modify do_mmc_rescan() to simply
call init_mmc_device() and convert the error codes, to avoid code
duplication.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Pantelis Antoniou <panto@antoniou-consulting.com>
common/cmd_mmc.c