From b7928dccbff43459ccd37b79c11070cbd890cbab Mon Sep 17 00:00:00 2001 From: Tao Huang Date: Tue, 24 Sep 2019 10:34:01 +0800 Subject: [PATCH] mmc: core: export primary_sdio_host and mmc_host_rescan Fixes: de208e40d996 ("mmc: porting legacy tactices into 4.19") Change-Id: Ifb0118c755aa4284f59a7e281fa323cbe9d5ca3b Signed-off-by: Tao Huang --- drivers/mmc/core/host.c | 4 +++- include/linux/mmc/host.h | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/core/host.c b/drivers/mmc/core/host.c index 7a55de3cff03..3a7c77a9e564 100644 --- a/drivers/mmc/core/host.c +++ b/drivers/mmc/core/host.c @@ -364,7 +364,6 @@ EXPORT_SYMBOL(mmc_of_parse); * * Initialise the per-host structure. */ -static struct mmc_host *primary_sdio_host; struct mmc_host *mmc_alloc_host(int extra, struct device *dev) { int err; @@ -425,6 +424,9 @@ struct mmc_host *mmc_alloc_host(int extra, struct device *dev) EXPORT_SYMBOL(mmc_alloc_host); +struct mmc_host *primary_sdio_host; +EXPORT_SYMBOL(primary_sdio_host); + /** * mmc_add_host - initialise host hardware * @host: mmc host diff --git a/include/linux/mmc/host.h b/include/linux/mmc/host.h index 6aae25e091a1..bd83b013e2d8 100644 --- a/include/linux/mmc/host.h +++ b/include/linux/mmc/host.h @@ -475,6 +475,9 @@ void mmc_free_host(struct mmc_host *); int mmc_of_parse(struct mmc_host *host); int mmc_of_parse_voltage(struct device_node *np, u32 *mask); +extern struct mmc_host *primary_sdio_host; +int mmc_host_rescan(struct mmc_host *host, int val, int is_cap_sdio_irq); + static inline void *mmc_priv(struct mmc_host *host) { return (void *)host->private;