aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
authorUlf Hansson <ulf.hansson@linaro.org>2019-06-11 17:44:32 +0200
committerUlf Hansson <ulf.hansson@linaro.org>2019-07-10 13:17:30 +0200
commitcd23042d05468ab2e66e0298b46ee90a5f8d9a74 (patch)
tree4b4005463338d114a2e02e9a1ba75b1b8ee73e3d /drivers/mmc
parentmmc: sdio: Turn sdio_run_irqs() into static (diff)
downloadlinux-dev-cd23042d05468ab2e66e0298b46ee90a5f8d9a74.tar.xz
linux-dev-cd23042d05468ab2e66e0298b46ee90a5f8d9a74.zip
mmc: sdio: Drop mmc_claim|release_host() in mmc_sdio_power_restore()
The function mmc_sdio_power_restore() is called either from mmc_sdio_runtime_resume() or from mmc_sdio_hw_reset(). Both callers either claims/releases the host or require its callers to do so. Therefore let's drop the redundant calls to mmc_claim|release_host() in mmc_sdio_power_restore(). Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org> Reviewed-by: Douglas Anderson <dianders@chromium.org> Tested-by: Douglas Anderson <dianders@chromium.org>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/core/sdio.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/mmc/core/sdio.c b/drivers/mmc/core/sdio.c
index 712a7742765e..b3303b7d9956 100644
--- a/drivers/mmc/core/sdio.c
+++ b/drivers/mmc/core/sdio.c
@@ -1030,14 +1030,10 @@ static int mmc_sdio_power_restore(struct mmc_host *host)
*
*/
- mmc_claim_host(host);
-
ret = mmc_sdio_reinit_card(host, mmc_card_keep_power(host));
if (!ret && host->sdio_irqs)
mmc_signal_sdio_irq(host);
- mmc_release_host(host);
-
return ret;
}