summaryrefslogtreecommitdiffstats
path: root/sys/arm/at91
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/at91
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/at91')
-rw-r--r--sys/arm/at91/at91_mci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/arm/at91/at91_mci.c b/sys/arm/at91/at91_mci.c
index 5bab815..ba6040f 100644
--- a/sys/arm/at91/at91_mci.c
+++ b/sys/arm/at91/at91_mci.c
@@ -1412,3 +1412,4 @@ DRIVER_MODULE(at91_mci, atmelarm, at91_mci_driver, at91_mci_devclass, NULL,
NULL);
#endif
DRIVER_MODULE(mmc, at91_mci, mmc_driver, mmc_devclass, NULL, NULL);
+MODULE_DEPEND(at91_mci, mmc, 1, 1, 1);
OpenPOWER on IntegriCloud