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

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

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: default avatarUlf Hansson <ulf.hansson@linaro.org>
Reviewed-by: default avatarDouglas Anderson <dianders@chromium.org>
Tested-by: default avatarDouglas Anderson <dianders@chromium.org>
parent cf4b20ec
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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;
}