diff options
author | Dong Aisheng <b29396@freescale.com> | 2013-10-18 07:48:50 -0400 |
---|---|---|
committer | Nitin Garg <nitin.garg@freescale.com> | 2014-04-16 09:05:50 -0400 |
commit | 16a6e7a8e20db560633c242d53f8f67fdd3be129 (patch) | |
tree | bdb03ee0679c542e0b5fc5914ec314ac01de32f0 /drivers/mmc | |
parent | e6c44bf79fd51011066cdcf1380da48058ed47ef (diff) |
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 <chris@printf.net>
Diffstat (limited to 'drivers/mmc')
-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 5c9833a73fe6..187499552e21 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c | |||
@@ -1418,7 +1418,8 @@ static void sdhci_do_set_ios(struct sdhci_host *host, struct mmc_ios *ios) | |||
1418 | } | 1418 | } |
1419 | 1419 | ||
1420 | if (host->version >= SDHCI_SPEC_300 && | 1420 | if (host->version >= SDHCI_SPEC_300 && |
1421 | (ios->power_mode == MMC_POWER_UP)) | 1421 | (ios->power_mode == MMC_POWER_UP) && |
1422 | !(host->quirks2 & SDHCI_QUIRK2_PRESET_VALUE_BROKEN)) | ||
1422 | sdhci_enable_preset_value(host, false); | 1423 | sdhci_enable_preset_value(host, false); |
1423 | 1424 | ||
1424 | sdhci_set_clock(host, ios->clock); | 1425 | sdhci_set_clock(host, ios->clock); |