diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2015-01-12 23:58:01 -0500 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2015-01-20 04:22:31 -0500 |
commit | 00452c11ea0e4e5822edf0ac46853933860d0f53 (patch) | |
tree | 3b25746b059445e7660afbb17b7e67a6f49a351d /drivers/mmc | |
parent | 4fe2ec57a15f98c232536cf04e7c139d830955d4 (diff) |
mmc: tmio: tmio_mmc_host has .clk_disable
Current .clk_disable 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 | 4 |
3 files changed, 4 insertions, 3 deletions
diff --git a/drivers/mmc/host/sh_mobile_sdhi.c b/drivers/mmc/host/sh_mobile_sdhi.c index 87af77dd660b..5e02a6a302e7 100644 --- a/drivers/mmc/host/sh_mobile_sdhi.c +++ b/drivers/mmc/host/sh_mobile_sdhi.c | |||
@@ -216,8 +216,8 @@ static int sh_mobile_sdhi_probe(struct platform_device *pdev) | |||
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 | host->clk_enable = sh_mobile_sdhi_clk_enable; |
219 | host->clk_disable = sh_mobile_sdhi_clk_disable; | ||
219 | 220 | ||
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; |
223 | if (p) { | 223 | if (p) { |
diff --git a/drivers/mmc/host/tmio_mmc.h b/drivers/mmc/host/tmio_mmc.h index 5cd298665b94..28234ec5caa3 100644 --- a/drivers/mmc/host/tmio_mmc.h +++ b/drivers/mmc/host/tmio_mmc.h | |||
@@ -97,6 +97,7 @@ struct tmio_mmc_host { | |||
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 | int (*clk_enable)(struct platform_device *pdev, unsigned int *f); |
100 | void (*clk_disable)(struct platform_device *pdev); | ||
100 | }; | 101 | }; |
101 | 102 | ||
102 | struct tmio_mmc_host *tmio_mmc_host_alloc(struct platform_device *pdev); | 103 | 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 38bcf0ca31c5..e33eb8ee5eb5 100644 --- a/drivers/mmc/host/tmio_mmc_pio.c +++ b/drivers/mmc/host/tmio_mmc_pio.c | |||
@@ -1249,8 +1249,8 @@ int tmio_mmc_host_runtime_suspend(struct device *dev) | |||
1249 | if (host->clk_cache) | 1249 | if (host->clk_cache) |
1250 | tmio_mmc_clk_stop(host); | 1250 | tmio_mmc_clk_stop(host); |
1251 | 1251 | ||
1252 | if (host->pdata->clk_disable) | 1252 | if (host->clk_disable) |
1253 | host->pdata->clk_disable(host->pdev); | 1253 | host->clk_disable(host->pdev); |
1254 | 1254 | ||
1255 | return 0; | 1255 | return 0; |
1256 | } | 1256 | } |