mmc: core: export primary_sdio_host and mmc_host_rescan

Fixes: de208e40d9 ("mmc: porting legacy tactices into 4.19")
Change-Id: Ifb0118c755aa4284f59a7e281fa323cbe9d5ca3b
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
This commit is contained in:
Tao Huang
2019-09-24 10:34:01 +08:00
parent f0b246aa52
commit b7928dccbf
2 changed files with 6 additions and 1 deletions

View File

@@ -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

View File

@@ -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;