diff options
author | Dong Aisheng <b29396@freescale.com> | 2013-10-18 11:48:50 (GMT) |
---|---|---|
committer | Chris Ball <chris@printf.net> | 2013-10-21 19:58:23 (GMT) |
commit | 372c463487c6af8275d216f4b259dda6343a33a5 (patch) | |
tree | 2fe49ebdd0e16cefcc29e1f6c171e835223f68d0 /drivers | |
parent | 69ed60e07bd2bb8517b4f87c6ddbb7f14c0189ab (diff) | |
download | linux-372c463487c6af8275d216f4b259dda6343a33a5.tar.xz |
mmc: sdhci: remove unneeded call when have preset value quirk
Remove unneeded call of call sdhci_enable_preset_value when having
SDHCI_QUIRK2_PRESET_VALUE_BROKEN.
Signed-off-by: Dong Aisheng <b29396@freescale.com>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mmc/host/sdhci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index cbde17d..a21a710 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -1435,7 +1435,8 @@ static void sdhci_do_set_ios(struct sdhci_host *host, struct mmc_ios *ios) } if (host->version >= SDHCI_SPEC_300 && - (ios->power_mode == MMC_POWER_UP)) + (ios->power_mode == MMC_POWER_UP) && + !(host->quirks2 & SDHCI_QUIRK2_PRESET_VALUE_BROKEN)) sdhci_enable_preset_value(host, false); sdhci_set_clock(host, ios->clock); |