diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-08-08 06:38:44 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2013-08-24 23:58:13 -0400 |
commit | 3af9d15c719017feb63fa99f89ac6009a5a3d467 (patch) | |
tree | ae2e096e7033bccd7c100786d75356c45fe57181 | |
parent | 2b63b341d42cd64ff40062447320d46cf3e7f0bb (diff) |
mmc: tmio-mmc: Remove .set_pwr() callback from platform data
The .set_pwr() callback isn't used anymore as all platforms register
GPIO-controlled regulators. Remove it.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
-rw-r--r-- | drivers/mmc/host/tmio_mmc.h | 1 | ||||
-rw-r--r-- | drivers/mmc/host/tmio_mmc_pio.c | 7 | ||||
-rw-r--r-- | include/linux/mfd/tmio.h | 1 |
3 files changed, 0 insertions, 9 deletions
diff --git a/drivers/mmc/host/tmio_mmc.h b/drivers/mmc/host/tmio_mmc.h index 86fd21e00099..39c2f45102c8 100644 --- a/drivers/mmc/host/tmio_mmc.h +++ b/drivers/mmc/host/tmio_mmc.h | |||
@@ -68,7 +68,6 @@ struct tmio_mmc_host { | |||
68 | enum tmio_mmc_power power; | 68 | enum tmio_mmc_power power; |
69 | 69 | ||
70 | /* Callbacks for clock / power control */ | 70 | /* Callbacks for clock / power control */ |
71 | void (*set_pwr)(struct platform_device *host, int state); | ||
72 | void (*set_clk_div)(struct platform_device *host, int state); | 71 | void (*set_clk_div)(struct platform_device *host, int state); |
73 | 72 | ||
74 | /* pio related stuff */ | 73 | /* pio related stuff */ |
diff --git a/drivers/mmc/host/tmio_mmc_pio.c b/drivers/mmc/host/tmio_mmc_pio.c index b3802256f954..67a3bf1238cf 100644 --- a/drivers/mmc/host/tmio_mmc_pio.c +++ b/drivers/mmc/host/tmio_mmc_pio.c | |||
@@ -777,9 +777,6 @@ static void tmio_mmc_power_on(struct tmio_mmc_host *host, unsigned short vdd) | |||
777 | 777 | ||
778 | /* .set_ios() is returning void, so, no chance to report an error */ | 778 | /* .set_ios() is returning void, so, no chance to report an error */ |
779 | 779 | ||
780 | if (host->set_pwr) | ||
781 | host->set_pwr(host->pdev, 1); | ||
782 | |||
783 | if (!IS_ERR(mmc->supply.vmmc)) { | 780 | if (!IS_ERR(mmc->supply.vmmc)) { |
784 | ret = mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, vdd); | 781 | ret = mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, vdd); |
785 | /* | 782 | /* |
@@ -813,9 +810,6 @@ static void tmio_mmc_power_off(struct tmio_mmc_host *host) | |||
813 | 810 | ||
814 | if (!IS_ERR(mmc->supply.vmmc)) | 811 | if (!IS_ERR(mmc->supply.vmmc)) |
815 | mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, 0); | 812 | mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, 0); |
816 | |||
817 | if (host->set_pwr) | ||
818 | host->set_pwr(host->pdev, 0); | ||
819 | } | 813 | } |
820 | 814 | ||
821 | /* Set MMC clock / power. | 815 | /* Set MMC clock / power. |
@@ -1002,7 +996,6 @@ int tmio_mmc_host_probe(struct tmio_mmc_host **host, | |||
1002 | _host->pdev = pdev; | 996 | _host->pdev = pdev; |
1003 | platform_set_drvdata(pdev, mmc); | 997 | platform_set_drvdata(pdev, mmc); |
1004 | 998 | ||
1005 | _host->set_pwr = pdata->set_pwr; | ||
1006 | _host->set_clk_div = pdata->set_clk_div; | 999 | _host->set_clk_div = pdata->set_clk_div; |
1007 | 1000 | ||
1008 | /* SD control register space size is 0x200, 0x400 for bus_shift=1 */ | 1001 | /* SD control register space size is 0x200, 0x400 for bus_shift=1 */ |
diff --git a/include/linux/mfd/tmio.h b/include/linux/mfd/tmio.h index b22883d60500..baa23464a1e6 100644 --- a/include/linux/mfd/tmio.h +++ b/include/linux/mfd/tmio.h | |||
@@ -106,7 +106,6 @@ struct tmio_mmc_data { | |||
106 | struct tmio_mmc_dma *dma; | 106 | struct tmio_mmc_dma *dma; |
107 | struct device *dev; | 107 | struct device *dev; |
108 | unsigned int cd_gpio; | 108 | unsigned int cd_gpio; |
109 | void (*set_pwr)(struct platform_device *host, int state); | ||
110 | void (*set_clk_div)(struct platform_device *host, int state); | 109 | void (*set_clk_div)(struct platform_device *host, int state); |
111 | int (*write16_hook)(struct tmio_mmc_host *host, int addr); | 110 | int (*write16_hook)(struct tmio_mmc_host *host, int addr); |
112 | /* clock management callbacks */ | 111 | /* clock management callbacks */ |