diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2016-03-21 14:40:07 +0100 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2016-05-02 10:33:23 +0200 |
commit | c8037e799b412562e906a2e95feaf177ba8c5df2 (patch) | |
tree | 1f0f1e5a16e7eb21aae5ab99146d826b29ec339e /drivers/mmc | |
parent | 4d56e9ae6b0cb227e1064be514b47ea477a38108 (diff) | |
download | blackbird-op-linux-c8037e799b412562e906a2e95feaf177ba8c5df2.tar.gz blackbird-op-linux-c8037e799b412562e906a2e95feaf177ba8c5df2.zip |
mmc: sdhci-pci: Remove redundant runtime PM calls
Commit 9250aea76bfc ("mmc: core: Enable runtime PM management of host
devices"), made some calls to the runtime PM API from the driver
redundant. Especially those which deals with runtime PM reference
counting, so let's remove them.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/host/sdhci-pci-core.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/mmc/host/sdhci-pci-core.c b/drivers/mmc/host/sdhci-pci-core.c index 79e19017343e..e5c6a4917682 100644 --- a/drivers/mmc/host/sdhci-pci-core.c +++ b/drivers/mmc/host/sdhci-pci-core.c @@ -340,8 +340,6 @@ static int bxt_get_cd(struct mmc_host *mmc) if (!gpio_cd) return 0; - pm_runtime_get_sync(mmc->parent); - spin_lock_irqsave(&host->lock, flags); if (host->flags & SDHCI_DEVICE_DEAD) @@ -351,9 +349,6 @@ static int bxt_get_cd(struct mmc_host *mmc) out: spin_unlock_irqrestore(&host->lock, flags); - pm_runtime_mark_last_busy(mmc->parent); - pm_runtime_put_autosuspend(mmc->parent); - return ret; } |