]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mmc: sdhci: remove the unused code about testing Card detect
authorJaehoon Chung <jh80.chung@samsung.com>
Fri, 30 Dec 2016 06:30:13 +0000 (15:30 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Wed, 11 Jan 2017 09:14:47 +0000 (18:14 +0900)
This code is dead code..There is no usage anywhere.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/mmc/sdhci.c

index 853c268d721bc9010253af8b0c113fc8dbc29d63..c512a4c190fab88362e41a082ae0210d374b8a02 100644 (file)
@@ -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
        }