summaryrefslogtreecommitdiff
path: root/drivers/of/base.c
diff options
context:
space:
mode:
authorHaibo Chen <haibo.chen@nxp.com>2016-04-05 17:43:38 +0800
committerHaibo Chen <haibo.chen@nxp.com>2016-04-14 14:00:33 +0800
commitc17b19dc8671d2e7be9a98969c47d00b89ce944d (patch)
treefe28c48b20452cef07ef944576d04a36b9fa06fb /drivers/of/base.c
parentde8a1559606c9e9cc888fdc7442409b9c4b28016 (diff)
MLK-12617 mmc: Fix compile error when CONFIG_MMC=m
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)
Diffstat (limited to 'drivers/of/base.c')
-rw-r--r--drivers/of/base.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c
index 169bbafd1ace..ab53ed849158 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -1912,6 +1912,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 the 'aliases' node