diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2015-01-12 23:58:10 -0500 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2015-01-20 04:22:40 -0500 |
commit | 85c02ddd591e5252eb1cbe8743a839638d7415fd (patch) | |
tree | 5e27f61e6cb9bd65e00ae2d257365efbc56c43d0 /drivers/mmc | |
parent | 00452c11ea0e4e5822edf0ac46853933860d0f53 (diff) |
mmc: tmio: tmio_mmc_host has .multi_io_quirk
Current .multi_io_quirk is implemented under tmio_mmc_data.
It goes to tmio_mmc_host by this patch.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/sh_mobile_sdhi.c | 2 | ||||
-rw-r--r-- | drivers/mmc/host/tmio_mmc.h | 2 | ||||
-rw-r--r-- | drivers/mmc/host/tmio_mmc_pio.c | 5 |
3 files changed, 5 insertions, 4 deletions
diff --git a/drivers/mmc/host/sh_mobile_sdhi.c b/drivers/mmc/host/sh_mobile_sdhi.c index 5e02a6a302e7..c92efe59284d 100644 --- a/drivers/mmc/host/sh_mobile_sdhi.c +++ b/drivers/mmc/host/sh_mobile_sdhi.c | |||
@@ -217,9 +217,9 @@ static int sh_mobile_sdhi_probe(struct platform_device *pdev) | |||
217 | host->write16_hook = sh_mobile_sdhi_write16_hook; | 217 | host->write16_hook = sh_mobile_sdhi_write16_hook; |
218 | host->clk_enable = sh_mobile_sdhi_clk_enable; | 218 | host->clk_enable = sh_mobile_sdhi_clk_enable; |
219 | host->clk_disable = sh_mobile_sdhi_clk_disable; | 219 | host->clk_disable = sh_mobile_sdhi_clk_disable; |
220 | host->multi_io_quirk = sh_mobile_sdhi_multi_io_quirk; | ||
220 | 221 | ||
221 | mmc_data->capabilities = MMC_CAP_MMC_HIGHSPEED; | 222 | mmc_data->capabilities = MMC_CAP_MMC_HIGHSPEED; |
222 | mmc_data->multi_io_quirk = sh_mobile_sdhi_multi_io_quirk; | ||
223 | if (p) { | 223 | if (p) { |
224 | mmc_data->flags = p->tmio_flags; | 224 | mmc_data->flags = p->tmio_flags; |
225 | mmc_data->ocr_mask = p->tmio_ocr_mask; | 225 | mmc_data->ocr_mask = p->tmio_ocr_mask; |
diff --git a/drivers/mmc/host/tmio_mmc.h b/drivers/mmc/host/tmio_mmc.h index 28234ec5caa3..263256c897ed 100644 --- a/drivers/mmc/host/tmio_mmc.h +++ b/drivers/mmc/host/tmio_mmc.h | |||
@@ -98,6 +98,8 @@ struct tmio_mmc_host { | |||
98 | int (*write16_hook)(struct tmio_mmc_host *host, int addr); | 98 | int (*write16_hook)(struct tmio_mmc_host *host, int addr); |
99 | int (*clk_enable)(struct platform_device *pdev, unsigned int *f); | 99 | int (*clk_enable)(struct platform_device *pdev, unsigned int *f); |
100 | void (*clk_disable)(struct platform_device *pdev); | 100 | void (*clk_disable)(struct platform_device *pdev); |
101 | int (*multi_io_quirk)(struct mmc_card *card, | ||
102 | unsigned int direction, int blk_size); | ||
101 | }; | 103 | }; |
102 | 104 | ||
103 | struct tmio_mmc_host *tmio_mmc_host_alloc(struct platform_device *pdev); | 105 | struct tmio_mmc_host *tmio_mmc_host_alloc(struct platform_device *pdev); |
diff --git a/drivers/mmc/host/tmio_mmc_pio.c b/drivers/mmc/host/tmio_mmc_pio.c index e33eb8ee5eb5..a31c3573d386 100644 --- a/drivers/mmc/host/tmio_mmc_pio.c +++ b/drivers/mmc/host/tmio_mmc_pio.c | |||
@@ -1004,10 +1004,9 @@ static int tmio_multi_io_quirk(struct mmc_card *card, | |||
1004 | unsigned int direction, int blk_size) | 1004 | unsigned int direction, int blk_size) |
1005 | { | 1005 | { |
1006 | struct tmio_mmc_host *host = mmc_priv(card->host); | 1006 | struct tmio_mmc_host *host = mmc_priv(card->host); |
1007 | struct tmio_mmc_data *pdata = host->pdata; | ||
1008 | 1007 | ||
1009 | if (pdata->multi_io_quirk) | 1008 | if (host->multi_io_quirk) |
1010 | return pdata->multi_io_quirk(card, direction, blk_size); | 1009 | return host->multi_io_quirk(card, direction, blk_size); |
1011 | 1010 | ||
1012 | return blk_size; | 1011 | return blk_size; |
1013 | } | 1012 | } |