diff options
author | Haibo Chen <haibo.chen@nxp.com> | 2016-04-05 17:43:38 +0800 |
---|---|---|
committer | Haibo Chen <haibo.chen@nxp.com> | 2016-04-14 14:08:51 +0800 |
commit | db1bcba69a63db89899275bd9c0444e705abdee9 (patch) | |
tree | f80e73b3983968cb7d69adea5eb12868122a7f5a | |
parent | f73df4928e4035dafae10eff5b7d29a7670db967 (diff) |
MLK-12617 mmc: Fix compile error when CONFIG_MMC=mrel_imx_3.14.52_1.1.1_ga
When CONFIG_MMC=m, compile error shows up
ERROR: "of_alias_max_index" [drivers/mmc/core/mmc_core.ko] undefined!
ERROR: "mmc_get_reserved_index" [drivers/mmc/card/mmc_block.ko] undefined!
ERROR: "mmc_first_nonreserved_index" [drivers/mmc/card/mmc_block.ko] undefined!
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
make: *** Waiting for unfinished jobs....
This patch export the upper three symbol for module runtime load.
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
(cherry picked from commit 3b2520f17d427b8fa8db37a6d9a4311f20c29036)
-rw-r--r-- | drivers/mmc/core/core.c | 2 | ||||
-rw-r--r-- | drivers/of/base.c | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index 97392f90aecc..b1991482852b 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -2723,6 +2723,7 @@ int mmc_first_nonreserved_index(void) { return __mmc_max_reserved_idx + 1; } +EXPORT_SYMBOL(mmc_first_nonreserved_index); /** * mmc_get_reserved_index() - get the index reserved for this host @@ -2734,6 +2735,7 @@ int mmc_get_reserved_index(struct mmc_host *host) { return of_alias_get_id(host->parent->of_node, "mmc"); } +EXPORT_SYMBOL(mmc_get_reserved_index); static void mmc_of_reserve_idx(void) { diff --git a/drivers/of/base.c b/drivers/of/base.c index d8f6f1a132d0..7d51a7e41412 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -1785,6 +1785,7 @@ int of_alias_max_index(const char *stem) return max; } +EXPORT_SYMBOL_GPL(of_alias_max_index); /** * of_alias_scan - Scan all properties of 'aliases' node |