dm: mmc: Ensure that block device is probed
authorSimon Glass <sjg@chromium.org>
Sat, 27 May 2017 17:37:18 +0000 (11:37 -0600)
committerJaehoon Chung <jh80.chung@samsung.com>
Fri, 9 Jun 2017 11:25:16 +0000 (20:25 +0900)
commit01b73fe63078e5bb1d375dc7d66e6f67893d3305
treed9ca715b1a51b3262d9d08b139fa75e09c7d8703
parent9f103b9cb5f8de4f196b5ef8f6ddb4749cd732ba
dm: mmc: Ensure that block device is probed

Make sure that we probe the block device before using it when reading
the environment.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
common/env_mmc.c