Commit ab1efd27 authored by Ulf Hansson's avatar Ulf Hansson Committed by Chris Ball

mmc: core: export function mmc_do_release_host()

When using mmc_try_claim_host the corresponding release
function is mmc_do_release_host, which then also must
be exported.
Reviewed-by: default avatarJonas Aberg <jonas.aberg@stericsson.com>
Reviewed-by: default avatarSebastian Rasmussen <sebastian.rasmussen@stericsson.com>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@stericsson.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 0aab3995
...@@ -527,7 +527,14 @@ int mmc_try_claim_host(struct mmc_host *host) ...@@ -527,7 +527,14 @@ int mmc_try_claim_host(struct mmc_host *host)
} }
EXPORT_SYMBOL(mmc_try_claim_host); EXPORT_SYMBOL(mmc_try_claim_host);
static void mmc_do_release_host(struct mmc_host *host) /**
* mmc_do_release_host - release a claimed host
* @host: mmc host to release
*
* If you successfully claimed a host, this function will
* release it again.
*/
void mmc_do_release_host(struct mmc_host *host)
{ {
unsigned long flags; unsigned long flags;
...@@ -542,6 +549,7 @@ static void mmc_do_release_host(struct mmc_host *host) ...@@ -542,6 +549,7 @@ static void mmc_do_release_host(struct mmc_host *host)
wake_up(&host->wq); wake_up(&host->wq);
} }
} }
EXPORT_SYMBOL(mmc_do_release_host);
void mmc_host_deeper_disable(struct work_struct *work) void mmc_host_deeper_disable(struct work_struct *work)
{ {
......
...@@ -160,6 +160,7 @@ extern unsigned int mmc_align_data_size(struct mmc_card *, unsigned int); ...@@ -160,6 +160,7 @@ extern unsigned int mmc_align_data_size(struct mmc_card *, unsigned int);
extern int __mmc_claim_host(struct mmc_host *host, atomic_t *abort); extern int __mmc_claim_host(struct mmc_host *host, atomic_t *abort);
extern void mmc_release_host(struct mmc_host *host); extern void mmc_release_host(struct mmc_host *host);
extern void mmc_do_release_host(struct mmc_host *host);
extern int mmc_try_claim_host(struct mmc_host *host); extern int mmc_try_claim_host(struct mmc_host *host);
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment