summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/tmio_mmc_pio.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2013-11-20 00:30:55 -0800
committerChris Ball <chris@printf.net>2014-01-13 12:48:23 -0500
commit3b159a6e955c8d468f4ffa212c8b5d68d8323a8d (patch)
tree897ba847a2be1223b4dd142869528d7747f5e346 /drivers/mmc/host/tmio_mmc_pio.c
parent05fae4a7551543f10f1892f533af2d12378a4ba9 (diff)
downloadblackbird-op-linux-3b159a6e955c8d468f4ffa212c8b5d68d8323a8d.tar.gz
blackbird-op-linux-3b159a6e955c8d468f4ffa212c8b5d68d8323a8d.zip
mmc: tmio: bus_shift become tmio_mmc_data member
.bus_shift is used to 16/32bit register access offset calculation on tmio driver. tmio_mmc_xxx is used from Toshiba/Renesas now, but this bus_shift value depends on HW IP. This patch moves .bus_shift to tmio_mmc_data member and sets it on each driver. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/tmio_mmc_pio.c')
-rw-r--r--drivers/mmc/host/tmio_mmc_pio.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/mmc/host/tmio_mmc_pio.c b/drivers/mmc/host/tmio_mmc_pio.c
index b94cb1666295..6836a8008c02 100644
--- a/drivers/mmc/host/tmio_mmc_pio.c
+++ b/drivers/mmc/host/tmio_mmc_pio.c
@@ -1013,9 +1013,6 @@ int tmio_mmc_host_probe(struct tmio_mmc_host **host,
_host->set_pwr = pdata->set_pwr;
_host->set_clk_div = pdata->set_clk_div;
- /* SD control register space size is 0x200, 0x400 for bus_shift=1 */
- _host->bus_shift = resource_size(res_ctl) >> 10;
-
ret = tmio_mmc_init_ocr(_host);
if (ret < 0)
goto host_free;
OpenPOWER on IntegriCloud