Skip to content

Commit

Permalink
mmc: mmci: Cascade EPROBE_DEFER from regulators.
Browse files Browse the repository at this point in the history
Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
  • Loading branch information
Bjorn Andersson authored and Ulf Hansson committed Mar 25, 2015
1 parent dc52488 commit 9369c97
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion drivers/mmc/host/mmci.c
Original file line number Diff line number Diff line change
Expand Up @@ -1613,7 +1613,10 @@ static int mmci_probe(struct amba_device *dev,
dev_dbg(mmc_dev(mmc), "clocking block at %u Hz\n", mmc->f_max);

/* Get regulators and the supported OCR mask */
mmc_regulator_get_supply(mmc);
ret = mmc_regulator_get_supply(mmc);
if (ret == -EPROBE_DEFER)
goto clk_disable;

if (!mmc->ocr_avail)
mmc->ocr_avail = plat->ocr_mask;
else if (plat->ocr_mask)
Expand Down

0 comments on commit 9369c97

Please sign in to comment.