diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2014-10-20 05:18:41 -0400 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2014-11-10 06:40:40 -0500 |
commit | 56d09b1da7dbe18bdb4e4a74df4a00ab95e6aecd (patch) | |
tree | 46eff07eda7873f21dd5d0db47eb9218e8550ed5 | |
parent | fd372f7d7f6c579379bd7d14e4924eba39a5b2dd (diff) |
mmc: core: Remove redundant check while selecting powerclass
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>
-rw-r--r-- | drivers/mmc/core/mmc.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c index d4ed62cab23d..c0f21eb56eec 100644 --- a/drivers/mmc/core/mmc.c +++ b/drivers/mmc/core/mmc.c | |||
@@ -793,14 +793,6 @@ static int __mmc_select_powerclass(struct mmc_card *card, | |||
793 | unsigned int pwrclass_val = 0; | 793 | unsigned int pwrclass_val = 0; |
794 | int err = 0; | 794 | int err = 0; |
795 | 795 | ||
796 | /* Power class selection is supported for versions >= 4.0 */ | ||
797 | if (card->csd.mmca_vsn < CSD_SPEC_VER_4) | ||
798 | return 0; | ||
799 | |||
800 | /* Power class values are defined only for 4/8 bit bus */ | ||
801 | if (bus_width == EXT_CSD_BUS_WIDTH_1) | ||
802 | return 0; | ||
803 | |||
804 | switch (1 << host->ios.vdd) { | 796 | switch (1 << host->ios.vdd) { |
805 | case MMC_VDD_165_195: | 797 | case MMC_VDD_165_195: |
806 | if (host->ios.clock <= MMC_HIGH_26_MAX_DTR) | 798 | if (host->ios.clock <= MMC_HIGH_26_MAX_DTR) |