提交 1cb0a58e 编写于 作者: A Adrian Hunter 提交者: Ulf Hansson

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: NAdrian Hunter <adrian.hunter@intel.com>
Signed-off-by: NUlf Hansson <ulf.hansson@linaro.org>
Tested-by: NLudovic Desroches <ludovic.desroches@microchip.com>
上级 61c951de
...@@ -1783,12 +1783,6 @@ static int sdhci_pci_runtime_suspend(struct device *dev) ...@@ -1783,12 +1783,6 @@ static int sdhci_pci_runtime_suspend(struct device *dev)
mmc_retune_needed(host->mmc); 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; return 0;
err_pci_runtime_suspend: err_pci_runtime_suspend:
...@@ -1808,12 +1802,6 @@ static int sdhci_pci_runtime_resume(struct device *dev) ...@@ -1808,12 +1802,6 @@ static int sdhci_pci_runtime_resume(struct device *dev)
if (!chip) if (!chip)
return 0; 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++) { for (i = 0; i < chip->num_slots; i++) {
slot = chip->slots[i]; slot = chip->slots[i];
if (!slot) if (!slot)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册