summaryrefslogtreecommitdiffstats
path: root/sys/arm/lpc
diff options
context:
space:
mode:
authorian <ian@FreeBSD.org>2016-03-21 00:52:24 +0000
committerian <ian@FreeBSD.org>2016-03-21 00:52:24 +0000
commit4e5b50116d60c5136bee585af21791efb8e9eadb (patch)
tree54723198693bf569c59342731ebad134b626663b /sys/arm/lpc
parent151439df17b264cbc53430a070ee959ba3cc2fe3 (diff)
downloadFreeBSD-src-4e5b50116d60c5136bee585af21791efb8e9eadb.zip
FreeBSD-src-4e5b50116d60c5136bee585af21791efb8e9eadb.tar.gz
Fix fallout from r292180 (Dec 2015)... ensure that every driver which has
a DRIVER_MODULE() referencing mmc_driver has a MODULE_DEPEND() on mmc. This is because the kernel linker only searches for symbols in dependent modules, so loading sdhci_pci (and other bus-flavors of sdhci) would fail when mmc was not compiled into the kernel (even if you hand-loaded mmc first). (Thanks to jilles@ for providing the vital clue about the kernel linker.)
Diffstat (limited to 'sys/arm/lpc')
-rw-r--r--sys/arm/lpc/lpc_mmc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/arm/lpc/lpc_mmc.c b/sys/arm/lpc/lpc_mmc.c
index ad3b6aa..6c33215 100644
--- a/sys/arm/lpc/lpc_mmc.c
+++ b/sys/arm/lpc/lpc_mmc.c
@@ -776,3 +776,4 @@ static driver_t lpc_mmc_driver = {
DRIVER_MODULE(lpcmmc, simplebus, lpc_mmc_driver, lpc_mmc_devclass, 0, 0);
DRIVER_MODULE(mmc, lpcmmc, mmc_driver, mmc_devclass, NULL, NULL);
+MODULE_DEPEND(lpcmmc, mmc, 1, 1, 1);
OpenPOWER on IntegriCloud