Skip to content
Commit 941944e4 authored by Stephen Warren's avatar Stephen Warren Committed by Pantelis Antoniou
Browse files

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: default avatarStephen Warren <swarren@nvidia.com>
Acked-by: default avatarPantelis Antoniou <panto@antoniou-consulting.com>
parent 1ae24a50
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment