diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2015-01-12 23:57:52 -0500 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2015-01-20 04:22:22 -0500 |
commit | 4fe2ec57a15f98c232536cf04e7c139d830955d4 (patch) | |
tree | 76409122e57a6d0edd436cffa888053d75cc5b9e /drivers/mmc | |
parent | dfe9a229e0a66b6a00439cea2885ad3b5d3e0840 (diff) |
mmc: tmio: tmio_mmc_host has .clk_enable
Current .clk_enable 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 | 1 | ||||
-rw-r--r-- | drivers/mmc/host/tmio_mmc_pio.c | 5 |
3 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mmc/host/sh_mobile_sdhi.c b/drivers/mmc/host/sh_mobile_sdhi.c index 77ff0620912e..87af77dd660b 100644 --- a/drivers/mmc/host/sh_mobile_sdhi.c +++ b/drivers/mmc/host/sh_mobile_sdhi.c | |||
@@ -215,8 +215,8 @@ static int sh_mobile_sdhi_probe(struct platform_device *pdev) | |||
215 | 215 | ||
216 | host->dma = dma_priv; | 216 | host->dma = dma_priv; |
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 | 219 | ||
219 | mmc_data->clk_enable = sh_mobile_sdhi_clk_enable; | ||
220 | mmc_data->clk_disable = sh_mobile_sdhi_clk_disable; | 220 | mmc_data->clk_disable = sh_mobile_sdhi_clk_disable; |
221 | mmc_data->capabilities = MMC_CAP_MMC_HIGHSPEED; | 221 | mmc_data->capabilities = MMC_CAP_MMC_HIGHSPEED; |
222 | mmc_data->multi_io_quirk = sh_mobile_sdhi_multi_io_quirk; | 222 | mmc_data->multi_io_quirk = sh_mobile_sdhi_multi_io_quirk; |
diff --git a/drivers/mmc/host/tmio_mmc.h b/drivers/mmc/host/tmio_mmc.h index 3fa96b11f76c..5cd298665b94 100644 --- a/drivers/mmc/host/tmio_mmc.h +++ b/drivers/mmc/host/tmio_mmc.h | |||
@@ -96,6 +96,7 @@ struct tmio_mmc_host { | |||
96 | bool sdio_irq_enabled; | 96 | bool sdio_irq_enabled; |
97 | 97 | ||
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 | }; | 100 | }; |
100 | 101 | ||
101 | struct tmio_mmc_host *tmio_mmc_host_alloc(struct platform_device *pdev); | 102 | 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 58f4e47aac8c..38bcf0ca31c5 100644 --- a/drivers/mmc/host/tmio_mmc_pio.c +++ b/drivers/mmc/host/tmio_mmc_pio.c | |||
@@ -835,13 +835,12 @@ fail: | |||
835 | static int tmio_mmc_clk_update(struct tmio_mmc_host *host) | 835 | static int tmio_mmc_clk_update(struct tmio_mmc_host *host) |
836 | { | 836 | { |
837 | struct mmc_host *mmc = host->mmc; | 837 | struct mmc_host *mmc = host->mmc; |
838 | struct tmio_mmc_data *pdata = host->pdata; | ||
839 | int ret; | 838 | int ret; |
840 | 839 | ||
841 | if (!pdata->clk_enable) | 840 | if (!host->clk_enable) |
842 | return -ENOTSUPP; | 841 | return -ENOTSUPP; |
843 | 842 | ||
844 | ret = pdata->clk_enable(host->pdev, &mmc->f_max); | 843 | ret = host->clk_enable(host->pdev, &mmc->f_max); |
845 | if (!ret) | 844 | if (!ret) |
846 | mmc->f_min = mmc->f_max / 512; | 845 | mmc->f_min = mmc->f_max / 512; |
847 | 846 | ||