summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorJaehoon Chung <jh80.chung@samsung.com>2016-12-30 06:30:13 (GMT)
committerJaehoon Chung <jh80.chung@samsung.com>2017-01-11 09:14:47 (GMT)
commit62358a988eef74e170f7ac8cb01c74e5bd5f36c7 (patch)
tree5cd79a0e09457459e2a8a41e3125270d8f480376 /drivers
parent309bf02cde07b36f61d82576db06cac7d2293580 (diff)
downloadu-boot-62358a988eef74e170f7ac8cb01c74e5bd5f36c7.tar.xz
mmc: sdhci: remove the unused code about testing Card detect
This code is dead code..There is no usage anywhere. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/sdhci.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c
index 853c268..c512a4c 100644
--- a/drivers/mmc/sdhci.c
+++ b/drivers/mmc/sdhci.c
@@ -490,17 +490,6 @@ static int sdhci_init(struct mmc *mmc)
* - set CD_TEST and clear CD_TEST_INS bit
*/
sdhci_writeb(host, SDHCI_CTRL_CD_TEST, SDHCI_HOST_CONTROL);
-#else
- unsigned int status;
-
- sdhci_writeb(host, SDHCI_CTRL_CD_TEST_INS | SDHCI_CTRL_CD_TEST,
- SDHCI_HOST_CONTROL);
-
- status = sdhci_readl(host, SDHCI_PRESENT_STATE);
- while ((!(status & SDHCI_CARD_PRESENT)) ||
- (!(status & SDHCI_CARD_STATE_STABLE)) ||
- (!(status & SDHCI_CARD_DETECT_PIN_LEVEL)))
- status = sdhci_readl(host, SDHCI_PRESENT_STATE);
#endif
}