]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commitdiff
mmc: tegra: Removed compilation warning
authorAnubhav Jain <anubhavj@nvidia.com>
Tue, 5 Jul 2016 05:27:21 +0000 (10:57 +0530)
committerAnubhav Jain <anubhavj@nvidia.com>
Mon, 11 Jul 2016 06:42:24 +0000 (23:42 -0700)
-Since power_gpio is not used anywhere and showing
compilation warning, so removed it.

Bug 200216732

Change-Id: I3937116f836eb7b70d43ea0ffc7ff94d13b0babc
Signed-off-by: Anubhav Jain <anubhavj@nvidia.com>
Reviewed-on: http://git-master/r/1175418
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
drivers/mmc/host/sdhci-tegra.c

index f8347b76d173286e89f94575a7fad37bb9646844..b6dfcd85fd23c1d5dfb074c8c8dc03093ee956e6 100644 (file)
@@ -204,7 +204,6 @@ struct sdhci_tegra_pll_parent {
 
 struct sdhci_tegra {
        const struct sdhci_tegra_soc_data *soc_data;
-       struct gpio_desc *power_gpio;
        const struct tegra_sdhci_platform_data *plat;
        struct tegra_bwmgr_client *emc_clk;
        bool    clk_enabled;
@@ -1116,15 +1115,6 @@ static int tegra_sdhci_signal_voltage_switch(struct sdhci_host *sdhci,
        } else if ((!rc) && (signal_voltage == MMC_SIGNAL_VOLTAGE_180))
                tegra_host->set_1v8_status = true;
 
-       if (gpio_is_valid(tegra_host->power_gpio)) {
-               if (signal_voltage == MMC_SIGNAL_VOLTAGE_330) {
-                       gpio_set_value(tegra_host->power_gpio, 1);
-               } else {
-                       gpio_set_value(tegra_host->power_gpio, 0);
-                       mdelay(1000);
-               }
-       }
-
        /* Wait for the voltage to stabilize */
        mdelay(10);