summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
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/powerpc
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/powerpc')
-rw-r--r--sys/powerpc/mpc85xx/fsl_sdhc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/powerpc/mpc85xx/fsl_sdhc.c b/sys/powerpc/mpc85xx/fsl_sdhc.c
index 174a8e6..29bedd8 100644
--- a/sys/powerpc/mpc85xx/fsl_sdhc.c
+++ b/sys/powerpc/mpc85xx/fsl_sdhc.c
@@ -126,7 +126,7 @@ static devclass_t fsl_sdhc_devclass;
DRIVER_MODULE(sdhci_fsl, simplebus, fsl_sdhc_driver, fsl_sdhc_devclass, 0, 0);
DRIVER_MODULE(mmc, sdhci_fsl, mmc_driver, mmc_devclass, NULL, NULL);
-
+MODULE_DEPEND(sdhci_fsl, mmc, 1, 1, 1);
/*****************************************************************************
* Private methods
OpenPOWER on IntegriCloud