summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/tmio_mmc_pio.c
diff options
context:
space:
mode:
authorGuennadi Liakhovetski2013-02-15 16:13:50 +0100
committerChris Ball2013-02-24 20:37:18 +0100
commit7b952137fdc5e2c52c990e7cbaf09450bcf01d5e (patch)
tree592417a99036e0d52c32790c9cda9e97a9e38046 /drivers/mmc/host/tmio_mmc_pio.c
parentmmc: sdhci: Fix parameter of sdhci_do_start_signal_voltage_switch() (diff)
downloadkernel-qcow2-linux-7b952137fdc5e2c52c990e7cbaf09450bcf01d5e.tar.gz
kernel-qcow2-linux-7b952137fdc5e2c52c990e7cbaf09450bcf01d5e.tar.xz
kernel-qcow2-linux-7b952137fdc5e2c52c990e7cbaf09450bcf01d5e.zip
mmc: sdhi, tmio: only check flags in tmio-mmc driver proper
tmio-mmc platform flags can be set by various means, including caller drivers and device-tree bindings, therefore it is better to only check them in the tmio-mmc driver proper, not in caller drivers themselves. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> 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, 3 insertions, 0 deletions
diff --git a/drivers/mmc/host/tmio_mmc_pio.c b/drivers/mmc/host/tmio_mmc_pio.c
index 0f992e9ffc73..b25adb4160f5 100644
--- a/drivers/mmc/host/tmio_mmc_pio.c
+++ b/drivers/mmc/host/tmio_mmc_pio.c
@@ -928,6 +928,9 @@ int tmio_mmc_host_probe(struct tmio_mmc_host **host,
int ret;
u32 irq_mask = TMIO_MASK_CMD;
+ if (!(pdata->flags & TMIO_MMC_HAS_IDLE_WAIT))
+ pdata->write16_hook = NULL;
+
res_ctl = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (!res_ctl)
return -EINVAL;