Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c8037e79 authored by Ulf Hansson's avatar Ulf Hansson
Browse files

mmc: sdhci-pci: Remove redundant runtime PM calls



Commit 9250aea7 ("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: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 4d56e9ae
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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;
}