aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorAdrian Hunter <adrian.hunter@intel.com>2015-02-06 14:12:51 +0200
committerUlf Hansson <ulf.hansson@linaro.org>2015-06-01 09:07:10 +0200
commit75e8a2288c4fabd6c2f752e8fd3bf7f60be7d3a4 (patch)
tree9549d374643ee5f31c14a473ea3e4f5a070e99e5 /drivers/mmc
parentmmc: sh_mmcif: calculate best clock with parent clock (diff)
downloadlinux-dev-75e8a2288c4fabd6c2f752e8fd3bf7f60be7d3a4.tar.xz
linux-dev-75e8a2288c4fabd6c2f752e8fd3bf7f60be7d3a4.zip
mmc: core: Reset driver type to default
IO state variable drv_type could be set during card initialization. Consequently, it must be reset to the default value when setting the initial state. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/core/core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c
index a262a0bf2f86..95009f90ae07 100644
--- a/drivers/mmc/core/core.c
+++ b/drivers/mmc/core/core.c
@@ -1184,6 +1184,7 @@ void mmc_set_initial_state(struct mmc_host *host)
host->ios.bus_mode = MMC_BUSMODE_PUSHPULL;
host->ios.bus_width = MMC_BUS_WIDTH_1;
host->ios.timing = MMC_TIMING_LEGACY;
+ host->ios.drv_type = 0;
mmc_set_ios(host);
}