MLK-12617 mmc: Fix compile error when CONFIG_MMC=m
authorHaibo Chen <haibo.chen@nxp.com>
Tue, 5 Apr 2016 09:43:38 +0000 (17:43 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:51:48 +0000 (14:51 -0500)
commit26f0df2d8ccf34e8344fcdcec5e315ed639691e4
tree8f7f1bee936f3d6345f5b0ba23bc45e02e6cb332
parent42fcb087c27eaed98dd543c8fa4f79f59565c3d2
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)
drivers/mmc/core/core.c
drivers/of/base.c