diff options
-rw-r--r-- | drivers/mmc/core/core.c | 10 | ||||
-rw-r--r-- | include/linux/mmc/core.h | 1 |
2 files changed, 10 insertions, 1 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index c47e13b79eee..4956da133be4 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c | |||
@@ -527,7 +527,14 @@ int mmc_try_claim_host(struct mmc_host *host) | |||
527 | } | 527 | } |
528 | EXPORT_SYMBOL(mmc_try_claim_host); | 528 | EXPORT_SYMBOL(mmc_try_claim_host); |
529 | 529 | ||
530 | static void mmc_do_release_host(struct mmc_host *host) | 530 | /** |
531 | * mmc_do_release_host - release a claimed host | ||
532 | * @host: mmc host to release | ||
533 | * | ||
534 | * If you successfully claimed a host, this function will | ||
535 | * release it again. | ||
536 | */ | ||
537 | void mmc_do_release_host(struct mmc_host *host) | ||
531 | { | 538 | { |
532 | unsigned long flags; | 539 | unsigned long flags; |
533 | 540 | ||
@@ -542,6 +549,7 @@ static void mmc_do_release_host(struct mmc_host *host) | |||
542 | wake_up(&host->wq); | 549 | wake_up(&host->wq); |
543 | } | 550 | } |
544 | } | 551 | } |
552 | EXPORT_SYMBOL(mmc_do_release_host); | ||
545 | 553 | ||
546 | void mmc_host_deeper_disable(struct work_struct *work) | 554 | void mmc_host_deeper_disable(struct work_struct *work) |
547 | { | 555 | { |
diff --git a/include/linux/mmc/core.h b/include/linux/mmc/core.h index 64e013f1cfb8..07f27af4dba5 100644 --- a/include/linux/mmc/core.h +++ b/include/linux/mmc/core.h | |||
@@ -160,6 +160,7 @@ extern unsigned int mmc_align_data_size(struct mmc_card *, unsigned int); | |||
160 | 160 | ||
161 | extern int __mmc_claim_host(struct mmc_host *host, atomic_t *abort); | 161 | extern int __mmc_claim_host(struct mmc_host *host, atomic_t *abort); |
162 | extern void mmc_release_host(struct mmc_host *host); | 162 | extern void mmc_release_host(struct mmc_host *host); |
163 | extern void mmc_do_release_host(struct mmc_host *host); | ||
163 | extern int mmc_try_claim_host(struct mmc_host *host); | 164 | extern int mmc_try_claim_host(struct mmc_host *host); |
164 | 165 | ||
165 | /** | 166 | /** |