[U-Boot] [PATCH 7/8] dm: mmc: Rewrite mmc_blk_probe()
sjg at google.com
sjg at google.com
Thu May 18 16:01:28 UTC 2017
This function is called when the MMC block device is being probed. There
is a recursive call in this function since find_mmc_device() itself can
cause the MMC device to be probed.
Admittedly the MMC device should already be probed, since we would not be
probing its child otherwise, but the current code is unnecessarily
convoluted.
Rewrite this to access the MMC structure directly.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
drivers/mmc/mmc-uclass.c | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
Applied to u-boot-dm
More information about the U-Boot
mailing list