summaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorJaehoon Chung2012-11-08 09:35:31 +0100
committerChris Ball2012-12-06 19:55:12 +0100
commitb2f7cb45c0ac0852b4b0ba938388ab24c91d6b2d (patch)
tree5f6eeb11f6e6336fffb9d445c430942a95122242 /drivers/mmc
parentmmc: dw_mmc: relocate where dw_mci_setup_bus() is called from (diff)
downloadkernel-qcow2-linux-b2f7cb45c0ac0852b4b0ba938388ab24c91d6b2d.tar.gz
kernel-qcow2-linux-b2f7cb45c0ac0852b4b0ba938388ab24c91d6b2d.tar.xz
kernel-qcow2-linux-b2f7cb45c0ac0852b4b0ba938388ab24c91d6b2d.zip
mmc: dw_mmc: remove duplicated buswidth code
ctype is using 1-bit buswidth mode by default. Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Acked-by: James Hogan <james.hogan@imgtec.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/dw_mmc.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c
index fa8b14cce33a..323c5022c2ca 100644
--- a/drivers/mmc/host/dw_mmc.c
+++ b/drivers/mmc/host/dw_mmc.c
@@ -773,19 +773,16 @@ static void dw_mci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
const struct dw_mci_drv_data *drv_data = slot->host->drv_data;
u32 regs;
- /* set default 1 bit mode */
- slot->ctype = SDMMC_CTYPE_1BIT;
-
switch (ios->bus_width) {
- case MMC_BUS_WIDTH_1:
- slot->ctype = SDMMC_CTYPE_1BIT;
- break;
case MMC_BUS_WIDTH_4:
slot->ctype = SDMMC_CTYPE_4BIT;
break;
case MMC_BUS_WIDTH_8:
slot->ctype = SDMMC_CTYPE_8BIT;
break;
+ default:
+ /* set default 1 bit mode */
+ slot->ctype = SDMMC_CTYPE_1BIT;
}
regs = mci_readl(slot->host, UHS_REG);