]> git.karo-electronics.de Git - linux-beck.git/commitdiff
mmc: tmio: tmio_mmc_host has .clk_disable
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tue, 13 Jan 2015 04:58:01 +0000 (04:58 +0000)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 20 Jan 2015 09:22:31 +0000 (10:22 +0100)
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>
drivers/mmc/host/sh_mobile_sdhi.c
drivers/mmc/host/tmio_mmc.h
drivers/mmc/host/tmio_mmc_pio.c
include/linux/mfd/tmio.h

index 87af77dd660b9495de16a80d342cb2c5a0ccc854..5e02a6a302e77e7b50414ab4d0ca0e25cac6b47e 100644 (file)
@@ -216,8 +216,8 @@ static int sh_mobile_sdhi_probe(struct platform_device *pdev)
        host->dma               = dma_priv;
        host->write16_hook      = sh_mobile_sdhi_write16_hook;
        host->clk_enable        = sh_mobile_sdhi_clk_enable;
+       host->clk_disable       = sh_mobile_sdhi_clk_disable;
 
-       mmc_data->clk_disable = sh_mobile_sdhi_clk_disable;
        mmc_data->capabilities = MMC_CAP_MMC_HIGHSPEED;
        mmc_data->multi_io_quirk = sh_mobile_sdhi_multi_io_quirk;
        if (p) {
index 5cd298665b946ed05f074d0438c358cb4fa2ca3e..28234ec5caa32c5d49683a635b3c96aa048a720e 100644 (file)
@@ -97,6 +97,7 @@ struct tmio_mmc_host {
 
        int (*write16_hook)(struct tmio_mmc_host *host, int addr);
        int (*clk_enable)(struct platform_device *pdev, unsigned int *f);
+       void (*clk_disable)(struct platform_device *pdev);
 };
 
 struct tmio_mmc_host *tmio_mmc_host_alloc(struct platform_device *pdev);
index 38bcf0ca31c516ad45ab3401fb1617200d4af336..e33eb8ee5eb5ba6b4b85adec52fadf93ae06c3ed 100644 (file)
@@ -1249,8 +1249,8 @@ int tmio_mmc_host_runtime_suspend(struct device *dev)
        if (host->clk_cache)
                tmio_mmc_clk_stop(host);
 
-       if (host->pdata->clk_disable)
-               host->pdata->clk_disable(host->pdev);
+       if (host->clk_disable)
+               host->clk_disable(host->pdev);
 
        return 0;
 }
index 472587a02a4219bd79434282b22a7b4fc6c5e1d3..a3f78da70af7148f52794faa4600e32741dbbebd 100644 (file)
@@ -125,8 +125,7 @@ struct tmio_mmc_data {
        unsigned int                    cd_gpio;
        void (*set_pwr)(struct platform_device *host, int state);
        void (*set_clk_div)(struct platform_device *host, int state);
-       /* clock management callbacks */
-       void (*clk_disable)(struct platform_device *pdev);
+
        int (*multi_io_quirk)(struct mmc_card *card,
                              unsigned int direction, int blk_size);
 };