diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2017-03-20 19:50:49 +0200 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2017-04-24 21:41:37 +0200 |
commit | 1cb0a58ec70402bab49bdb4c5d152e82fd82200e (patch) | |
tree | b842361866eb458166a3b7df022cd8249f305bf9 /drivers/mmc | |
parent | 61c951dedce6aa4dbc5456730233c30ac0d30d5d (diff) | |
download | linux-stable-1cb0a58ec70402bab49bdb4c5d152e82fd82200e.tar.gz linux-stable-1cb0a58ec70402bab49bdb4c5d152e82fd82200e.tar.bz2 linux-stable-1cb0a58ec70402bab49bdb4c5d152e82fd82200e.zip |
mmc: sdhci-pci: Do not use suspend/resume callbacks with runtime pm
Do not use suspend/resume callbacks with runtime pm. It doesn't make sense
and isn't being used, so remove.
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/sdhci-pci-core.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/mmc/host/sdhci-pci-core.c b/drivers/mmc/host/sdhci-pci-core.c index b5fd82e26125..7e8163affb26 100644 --- a/drivers/mmc/host/sdhci-pci-core.c +++ b/drivers/mmc/host/sdhci-pci-core.c @@ -1783,12 +1783,6 @@ static int sdhci_pci_runtime_suspend(struct device *dev) mmc_retune_needed(host->mmc); } - if (chip->fixes && chip->fixes->suspend) { - ret = chip->fixes->suspend(chip); - if (ret) - goto err_pci_runtime_suspend; - } - return 0; err_pci_runtime_suspend: @@ -1808,12 +1802,6 @@ static int sdhci_pci_runtime_resume(struct device *dev) if (!chip) return 0; - if (chip->fixes && chip->fixes->resume) { - ret = chip->fixes->resume(chip); - if (ret) - return ret; - } - for (i = 0; i < chip->num_slots; i++) { slot = chip->slots[i]; if (!slot) |