diff options
Diffstat (limited to 'drivers/mmc/host/sdhci.c')
-rw-r--r-- | drivers/mmc/host/sdhci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 881bf89acfc..75d3c28940f 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c | |||
@@ -2663,7 +2663,7 @@ static int sdhci_runtime_pm_put(struct sdhci_host *host) | |||
2663 | 2663 | ||
2664 | static void sdhci_runtime_pm_bus_on(struct sdhci_host *host) | 2664 | static void sdhci_runtime_pm_bus_on(struct sdhci_host *host) |
2665 | { | 2665 | { |
2666 | if (host->runtime_suspended || host->bus_on) | 2666 | if (host->bus_on) |
2667 | return; | 2667 | return; |
2668 | host->bus_on = true; | 2668 | host->bus_on = true; |
2669 | pm_runtime_get_noresume(host->mmc->parent); | 2669 | pm_runtime_get_noresume(host->mmc->parent); |
@@ -2671,7 +2671,7 @@ static void sdhci_runtime_pm_bus_on(struct sdhci_host *host) | |||
2671 | 2671 | ||
2672 | static void sdhci_runtime_pm_bus_off(struct sdhci_host *host) | 2672 | static void sdhci_runtime_pm_bus_off(struct sdhci_host *host) |
2673 | { | 2673 | { |
2674 | if (host->runtime_suspended || !host->bus_on) | 2674 | if (!host->bus_on) |
2675 | return; | 2675 | return; |
2676 | host->bus_on = false; | 2676 | host->bus_on = false; |
2677 | pm_runtime_put_noidle(host->mmc->parent); | 2677 | pm_runtime_put_noidle(host->mmc->parent); |