mmc: tmio-mmc: Remove .set_pwr() callback from platform data
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Thu, 8 Aug 2013 10:38:44 +0000 (12:38 +0200)
committerChris Ball <cjb@laptop.org>
Sun, 25 Aug 2013 03:58:13 +0000 (23:58 -0400)
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>
drivers/mmc/host/tmio_mmc.h
drivers/mmc/host/tmio_mmc_pio.c
include/linux/mfd/tmio.h

index 86fd21e000994d622b7117e88236533a471770e9..39c2f45102c8837e697ed0b09ce3462c03447703 100644 (file)
@@ -68,7 +68,6 @@ struct tmio_mmc_host {
        enum tmio_mmc_power     power;
 
        /* Callbacks for clock / power control */
-       void (*set_pwr)(struct platform_device *host, int state);
        void (*set_clk_div)(struct platform_device *host, int state);
 
        /* pio related stuff */
index b3802256f954b24d7da9f2b3dae35eed4091cae1..67a3bf1238cf2561b9f2cb23fab267ca7739650a 100644 (file)
@@ -777,9 +777,6 @@ static void tmio_mmc_power_on(struct tmio_mmc_host *host, unsigned short vdd)
 
        /* .set_ios() is returning void, so, no chance to report an error */
 
-       if (host->set_pwr)
-               host->set_pwr(host->pdev, 1);
-
        if (!IS_ERR(mmc->supply.vmmc)) {
                ret = mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, vdd);
                /*
@@ -813,9 +810,6 @@ static void tmio_mmc_power_off(struct tmio_mmc_host *host)
 
        if (!IS_ERR(mmc->supply.vmmc))
                mmc_regulator_set_ocr(mmc, mmc->supply.vmmc, 0);
-
-       if (host->set_pwr)
-               host->set_pwr(host->pdev, 0);
 }
 
 /* Set MMC clock / power.
@@ -1002,7 +996,6 @@ int tmio_mmc_host_probe(struct tmio_mmc_host **host,
        _host->pdev = pdev;
        platform_set_drvdata(pdev, mmc);
 
-       _host->set_pwr = pdata->set_pwr;
        _host->set_clk_div = pdata->set_clk_div;
 
        /* SD control register space size is 0x200, 0x400 for bus_shift=1 */
index b22883d60500ee540315f6bdd56e2e9f11be56aa..baa23464a1e65fe4b75bc3204ab10376a97dc87d 100644 (file)
@@ -106,7 +106,6 @@ struct tmio_mmc_data {
        struct tmio_mmc_dma             *dma;
        struct device                   *dev;
        unsigned int                    cd_gpio;
-       void (*set_pwr)(struct platform_device *host, int state);
        void (*set_clk_div)(struct platform_device *host, int state);
        int (*write16_hook)(struct tmio_mmc_host *host, int addr);
        /* clock management callbacks */
This page took 0.027344 seconds and 5 git commands to generate.