summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/tmio_mmc_core.c
diff options
context:
space:
mode:
authorMasahiro Yamada2017-11-24 17:24:42 +0100
committerUlf Hansson2017-12-18 13:56:58 +0100
commit2aaa3c5193db9cdfe62201aa4eb4e1007a43fdc8 (patch)
tree48424715b4077285c8445371515803d499e4e73e /drivers/mmc/host/tmio_mmc_core.c
parentmmc: tmio: move mmc_host_ops to struct tmio_mmc_host from static data (diff)
downloadkernel-qcow2-linux-2aaa3c5193db9cdfe62201aa4eb4e1007a43fdc8.tar.gz
kernel-qcow2-linux-2aaa3c5193db9cdfe62201aa4eb4e1007a43fdc8.tar.xz
kernel-qcow2-linux-2aaa3c5193db9cdfe62201aa4eb4e1007a43fdc8.zip
mmc: tmio, renesas_sdhi: set mmc_host_ops hooks directly
Drivers can set any mmc_host_ops hooks between tmio_mmc_host_alloc() and tmio_mmc_host_probe(). Remove duplicated hooks in tmio_mmc_host. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Tested-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc/host/tmio_mmc_core.c')
-rw-r--r--drivers/mmc/host/tmio_mmc_core.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/mmc/host/tmio_mmc_core.c b/drivers/mmc/host/tmio_mmc_core.c
index ea5181d7948d..1abe83b9f568 100644
--- a/drivers/mmc/host/tmio_mmc_core.c
+++ b/drivers/mmc/host/tmio_mmc_core.c
@@ -1205,10 +1205,6 @@ int tmio_mmc_host_probe(struct tmio_mmc_host *_host,
if (ret < 0)
return ret;
- _host->ops.card_busy = _host->card_busy;
- _host->ops.start_signal_voltage_switch =
- _host->start_signal_voltage_switch;
-
mmc->caps |= MMC_CAP_4_BIT_DATA | pdata->capabilities;
mmc->caps2 |= pdata->capabilities2;
mmc->max_segs = pdata->max_segs ? : 32;