mmc: core: Remove redundant check while selecting powerclass
authorUlf Hansson <ulf.hansson@linaro.org>
Mon, 20 Oct 2014 09:18:41 +0000 (11:18 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 10 Nov 2014 11:40:40 +0000 (12:40 +0100)
The validation of the buswidth and the MMC spec version in
__mmc_select_powerclass() is redundant, let's remove it.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/mmc.c

index d4ed62cab23dfde9cd5e496c0952b231f1fc07ca..c0f21eb56eec8a257b61d0b8e8c0fa10609c35a7 100644 (file)
@@ -793,14 +793,6 @@ static int __mmc_select_powerclass(struct mmc_card *card,
        unsigned int pwrclass_val = 0;
        int err = 0;
 
-       /* Power class selection is supported for versions >= 4.0 */
-       if (card->csd.mmca_vsn < CSD_SPEC_VER_4)
-               return 0;
-
-       /* Power class values are defined only for 4/8 bit bus */
-       if (bus_width == EXT_CSD_BUS_WIDTH_1)
-               return 0;
-
        switch (1 << host->ios.vdd) {
        case MMC_VDD_165_195:
                if (host->ios.clock <= MMC_HIGH_26_MAX_DTR)
This page took 0.026941 seconds and 5 git commands to generate.