diff options
| author | Grant Grundler <grundler@chromium.org> | 2013-09-19 21:21:36 -0400 |
|---|---|---|
| committer | Chris Ball <cjb@laptop.org> | 2013-09-25 21:26:29 -0400 |
| commit | b83e867026caedd6d67fccfbe6e9a621edd79b21 (patch) | |
| tree | 1c842a63bea26a684de7ac17ac281ea9ff716a4f | |
| parent | 4b97280675f45c1650ee4e388bd711ecbb18c4b4 (diff) | |
mmc: core: remove dead function mmc_try_claim_host
cscope says there are no callers for mmc_try_claim_host in the kernel.
No reason to keep it.
Signed-off-by: Grant Grundler <grundler@chromium.org>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
| -rw-r--r-- | drivers/mmc/core/core.c | 25 | ||||
| -rw-r--r-- | include/linux/mmc/core.h | 1 |
2 files changed, 0 insertions, 26 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index bf18b6bfce48..006ead2fb701 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c | |||
| @@ -918,31 +918,6 @@ int __mmc_claim_host(struct mmc_host *host, atomic_t *abort) | |||
| 918 | EXPORT_SYMBOL(__mmc_claim_host); | 918 | EXPORT_SYMBOL(__mmc_claim_host); |
| 919 | 919 | ||
| 920 | /** | 920 | /** |
| 921 | * mmc_try_claim_host - try exclusively to claim a host | ||
| 922 | * @host: mmc host to claim | ||
| 923 | * | ||
| 924 | * Returns %1 if the host is claimed, %0 otherwise. | ||
| 925 | */ | ||
| 926 | int mmc_try_claim_host(struct mmc_host *host) | ||
| 927 | { | ||
| 928 | int claimed_host = 0; | ||
| 929 | unsigned long flags; | ||
| 930 | |||
| 931 | spin_lock_irqsave(&host->lock, flags); | ||
| 932 | if (!host->claimed || host->claimer == current) { | ||
| 933 | host->claimed = 1; | ||
| 934 | host->claimer = current; | ||
| 935 | host->claim_cnt += 1; | ||
| 936 | claimed_host = 1; | ||
| 937 | } | ||
| 938 | spin_unlock_irqrestore(&host->lock, flags); | ||
| 939 | if (host->ops->enable && claimed_host && host->claim_cnt == 1) | ||
| 940 | host->ops->enable(host); | ||
| 941 | return claimed_host; | ||
| 942 | } | ||
| 943 | EXPORT_SYMBOL(mmc_try_claim_host); | ||
| 944 | |||
| 945 | /** | ||
| 946 | * mmc_release_host - release a host | 921 | * mmc_release_host - release a host |
| 947 | * @host: mmc host to release | 922 | * @host: mmc host to release |
| 948 | * | 923 | * |
diff --git a/include/linux/mmc/core.h b/include/linux/mmc/core.h index da51bec578c3..a00fc49c8434 100644 --- a/include/linux/mmc/core.h +++ b/include/linux/mmc/core.h | |||
| @@ -188,7 +188,6 @@ extern unsigned int mmc_align_data_size(struct mmc_card *, unsigned int); | |||
| 188 | 188 | ||
| 189 | extern int __mmc_claim_host(struct mmc_host *host, atomic_t *abort); | 189 | extern int __mmc_claim_host(struct mmc_host *host, atomic_t *abort); |
| 190 | extern void mmc_release_host(struct mmc_host *host); | 190 | extern void mmc_release_host(struct mmc_host *host); |
| 191 | extern int mmc_try_claim_host(struct mmc_host *host); | ||
| 192 | 191 | ||
| 193 | extern void mmc_get_card(struct mmc_card *card); | 192 | extern void mmc_get_card(struct mmc_card *card); |
| 194 | extern void mmc_put_card(struct mmc_card *card); | 193 | extern void mmc_put_card(struct mmc_card *card); |
