Skip to content

Commit 1cb0a58

Browse files
ahunter6storulf
authored andcommitted
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>
1 parent 61c951d commit 1cb0a58

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

drivers/mmc/host/sdhci-pci-core.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1783,12 +1783,6 @@ static int sdhci_pci_runtime_suspend(struct device *dev)
17831783
mmc_retune_needed(host->mmc);
17841784
}
17851785

1786-
if (chip->fixes && chip->fixes->suspend) {
1787-
ret = chip->fixes->suspend(chip);
1788-
if (ret)
1789-
goto err_pci_runtime_suspend;
1790-
}
1791-
17921786
return 0;
17931787

17941788
err_pci_runtime_suspend:
@@ -1808,12 +1802,6 @@ static int sdhci_pci_runtime_resume(struct device *dev)
18081802
if (!chip)
18091803
return 0;
18101804

1811-
if (chip->fixes && chip->fixes->resume) {
1812-
ret = chip->fixes->resume(chip);
1813-
if (ret)
1814-
return ret;
1815-
}
1816-
18171805
for (i = 0; i < chip->num_slots; i++) {
18181806
slot = chip->slots[i];
18191807
if (!slot)

0 commit comments

Comments
 (0)