]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: mmc: Rewrite mmc_blk_probe()
authorSimon Glass <sjg@chromium.org>
Mon, 24 Apr 2017 02:02:10 +0000 (20:02 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 1 Jun 2017 13:03:05 +0000 (07:03 -0600)
commit854f9a71f594555858cdffce18f6183a75d1d730
treeac7493eb55054b0a51c2bda436958e35dfdf1572
parent66656020ff180e2a689fbe83fcd02c3e42ecdc30
dm: mmc: Rewrite mmc_blk_probe()

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@chromium.org>
drivers/mmc/mmc-uclass.c