mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
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:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user