]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mmc: sd: Simplify by using mmc_host_uhs
authorJohan Rudholm <johan.rudholm@stericsson.com>
Mon, 28 Jan 2013 14:08:24 +0000 (15:08 +0100)
committerChris Ball <cjb@laptop.org>
Tue, 12 Feb 2013 15:42:13 +0000 (10:42 -0500)
Signed-off-by: Johan Rudholm <johan.rudholm@stericsson.com>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/sd.c

index 74972c241dff38751d5be3e0e653336e7e8892a5..9373639480791b1c16e66ccf405fcf63f74e1fdf 100644 (file)
@@ -444,8 +444,7 @@ static void sd_update_bus_speed_mode(struct mmc_card *card)
         * If the host doesn't support any of the UHS-I modes, fallback on
         * default speed.
         */
-       if (!(card->host->caps & (MMC_CAP_UHS_SDR12 | MMC_CAP_UHS_SDR25 |
-           MMC_CAP_UHS_SDR50 | MMC_CAP_UHS_SDR104 | MMC_CAP_UHS_DDR50))) {
+       if (!mmc_host_uhs(card->host)) {
                card->sd_bus_speed = 0;
                return;
        }
@@ -736,8 +735,7 @@ int mmc_sd_get_cid(struct mmc_host *host, u32 ocr, u32 *cid, u32 *rocr)
         * If the host supports one of UHS-I modes, request the card
         * to switch to 1.8V signaling level.
         */
-       if (host->caps & (MMC_CAP_UHS_SDR12 | MMC_CAP_UHS_SDR25 |
-           MMC_CAP_UHS_SDR50 | MMC_CAP_UHS_SDR104 | MMC_CAP_UHS_DDR50))
+       if (mmc_host_uhs(host))
                ocr |= SD_OCR_S18R;
 
        /*