Skip to content
Commit 854f9a71 authored by Simon Glass's avatar Simon Glass
Browse files

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: default avatarSimon Glass <sjg@chromium.org>
parent 66656020
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment