diff options
-rw-r--r-- | drivers/mmc/host/sh_mobile_sdhi.c | 3 | ||||
-rw-r--r-- | drivers/mmc/host/tmio_mmc_pio.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/drivers/mmc/host/sh_mobile_sdhi.c b/drivers/mmc/host/sh_mobile_sdhi.c index 524a7f773820..e0ca0abba0e5 100644 --- a/drivers/mmc/host/sh_mobile_sdhi.c +++ b/drivers/mmc/host/sh_mobile_sdhi.c | |||
@@ -153,10 +153,9 @@ static int sh_mobile_sdhi_probe(struct platform_device *pdev) | |||
153 | mmc_data->clk_enable = sh_mobile_sdhi_clk_enable; | 153 | mmc_data->clk_enable = sh_mobile_sdhi_clk_enable; |
154 | mmc_data->clk_disable = sh_mobile_sdhi_clk_disable; | 154 | mmc_data->clk_disable = sh_mobile_sdhi_clk_disable; |
155 | mmc_data->capabilities = MMC_CAP_MMC_HIGHSPEED; | 155 | mmc_data->capabilities = MMC_CAP_MMC_HIGHSPEED; |
156 | mmc_data->write16_hook = sh_mobile_sdhi_write16_hook; | ||
156 | if (p) { | 157 | if (p) { |
157 | mmc_data->flags = p->tmio_flags; | 158 | mmc_data->flags = p->tmio_flags; |
158 | if (mmc_data->flags & TMIO_MMC_HAS_IDLE_WAIT) | ||
159 | mmc_data->write16_hook = sh_mobile_sdhi_write16_hook; | ||
160 | mmc_data->ocr_mask = p->tmio_ocr_mask; | 159 | mmc_data->ocr_mask = p->tmio_ocr_mask; |
161 | mmc_data->capabilities |= p->tmio_caps; | 160 | mmc_data->capabilities |= p->tmio_caps; |
162 | mmc_data->capabilities2 |= p->tmio_caps2; | 161 | mmc_data->capabilities2 |= p->tmio_caps2; |
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, | |||
928 | int ret; | 928 | int ret; |
929 | u32 irq_mask = TMIO_MASK_CMD; | 929 | u32 irq_mask = TMIO_MASK_CMD; |
930 | 930 | ||
931 | if (!(pdata->flags & TMIO_MMC_HAS_IDLE_WAIT)) | ||
932 | pdata->write16_hook = NULL; | ||
933 | |||
931 | res_ctl = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 934 | res_ctl = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
932 | if (!res_ctl) | 935 | if (!res_ctl) |
933 | return -EINVAL; | 936 | return -EINVAL; |