mmc: core: Remove unnecessary host claim
Callers already have the host claimed, so remove the unnecessary calls to mmc_claim_host() and mmc_release_host(). Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
This commit is contained in:
committed by
Ulf Hansson
parent
1c87f73578
commit
9ca28c5cd9
@ -977,7 +977,6 @@ void mmc_start_bkops(struct mmc_card *card, bool from_exception)
|
|||||||
from_exception)
|
from_exception)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
mmc_claim_host(card->host);
|
|
||||||
if (card->ext_csd.raw_bkops_status >= EXT_CSD_BKOPS_LEVEL_2) {
|
if (card->ext_csd.raw_bkops_status >= EXT_CSD_BKOPS_LEVEL_2) {
|
||||||
timeout = MMC_OPS_TIMEOUT_MS;
|
timeout = MMC_OPS_TIMEOUT_MS;
|
||||||
use_busy_signal = true;
|
use_busy_signal = true;
|
||||||
@ -995,7 +994,7 @@ void mmc_start_bkops(struct mmc_card *card, bool from_exception)
|
|||||||
pr_warn("%s: Error %d starting bkops\n",
|
pr_warn("%s: Error %d starting bkops\n",
|
||||||
mmc_hostname(card->host), err);
|
mmc_hostname(card->host), err);
|
||||||
mmc_retune_release(card->host);
|
mmc_retune_release(card->host);
|
||||||
goto out;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -1007,8 +1006,6 @@ void mmc_start_bkops(struct mmc_card *card, bool from_exception)
|
|||||||
mmc_card_set_doing_bkops(card);
|
mmc_card_set_doing_bkops(card);
|
||||||
else
|
else
|
||||||
mmc_retune_release(card->host);
|
mmc_retune_release(card->host);
|
||||||
out:
|
|
||||||
mmc_release_host(card->host);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user