diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2017-09-22 08:36:50 -0400 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2017-10-30 06:45:49 -0400 |
commit | 9ca28c5cd967e07e708a407eec59894e2e643670 (patch) | |
tree | 5dc878b94f55a89a0cb3727a73391f480270f87d /drivers/mmc | |
parent | 1c87f73578497a6c3cc77bcbfd2e5bf15fe753c7 (diff) |
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>
Diffstat (limited to 'drivers/mmc')
-rw-r--r-- | drivers/mmc/core/mmc_ops.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/mmc/core/mmc_ops.c b/drivers/mmc/core/mmc_ops.c index 54686ca4bfb7..a6b0a232f24a 100644 --- a/drivers/mmc/core/mmc_ops.c +++ b/drivers/mmc/core/mmc_ops.c | |||
@@ -977,7 +977,6 @@ void mmc_start_bkops(struct mmc_card *card, bool from_exception) | |||
977 | from_exception) | 977 | from_exception) |
978 | return; | 978 | return; |
979 | 979 | ||
980 | mmc_claim_host(card->host); | ||
981 | if (card->ext_csd.raw_bkops_status >= EXT_CSD_BKOPS_LEVEL_2) { | 980 | if (card->ext_csd.raw_bkops_status >= EXT_CSD_BKOPS_LEVEL_2) { |
982 | timeout = MMC_OPS_TIMEOUT_MS; | 981 | timeout = MMC_OPS_TIMEOUT_MS; |
983 | use_busy_signal = true; | 982 | use_busy_signal = true; |
@@ -995,7 +994,7 @@ void mmc_start_bkops(struct mmc_card *card, bool from_exception) | |||
995 | pr_warn("%s: Error %d starting bkops\n", | 994 | pr_warn("%s: Error %d starting bkops\n", |
996 | mmc_hostname(card->host), err); | 995 | mmc_hostname(card->host), err); |
997 | mmc_retune_release(card->host); | 996 | mmc_retune_release(card->host); |
998 | goto out; | 997 | return; |
999 | } | 998 | } |
1000 | 999 | ||
1001 | /* | 1000 | /* |
@@ -1007,8 +1006,6 @@ void mmc_start_bkops(struct mmc_card *card, bool from_exception) | |||
1007 | mmc_card_set_doing_bkops(card); | 1006 | mmc_card_set_doing_bkops(card); |
1008 | else | 1007 | else |
1009 | mmc_retune_release(card->host); | 1008 | mmc_retune_release(card->host); |
1010 | out: | ||
1011 | mmc_release_host(card->host); | ||
1012 | } | 1009 | } |
1013 | 1010 | ||
1014 | /* | 1011 | /* |