mmc: host: tegra: remove redundant code from tegra_sdhci_suspend
Varun Wadekar [Wed, 1 Feb 2012 10:08:29 +0000 (15:08 +0530)]
tegra_sdhci_suspend() had code to disable the same regulators
twice. Remove one instance of the code to avoid warnings
during system suspend.

Change-Id: I71789b40a6d5e5c500c57b8323b9f4bc79634886
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/78682
Reviewed-by: Automatic_Commit_Validation_User

drivers/mmc/host/sdhci-tegra.c

index a0b5e43..570e7e2 100644 (file)
@@ -556,10 +556,6 @@ static int tegra_sdhci_suspend(struct sdhci_host *sdhci, pm_message_t state)
        tegra_sdhci_set_clock(sdhci, 0);
 
        /* Disable the power rails if any */
-       if (tegra_host->vdd_slot_reg)
-               regulator_disable(tegra_host->vdd_slot_reg);
-       if (tegra_host->vdd_io_reg)
-               regulator_disable(tegra_host->vdd_io_reg);
        if (tegra_host->card_present) {
                if (tegra_host->is_rail_enabled) {
                        if (tegra_host->vdd_io_reg)