diff options
author | mdodd <mdodd@FreeBSD.org> | 2003-04-15 06:37:30 +0000 |
---|---|---|
committer | mdodd <mdodd@FreeBSD.org> | 2003-04-15 06:37:30 +0000 |
commit | 261178d14f232fd1e66908a6c6e97c3a4cd36adc (patch) | |
tree | 1bdd3154994e1ca8f70eb0f16c9b58a107fcc11e /sys/pci/if_dc.c | |
parent | e7e7ff6c1cee7cfcbfd15e9651917287a315e054 (diff) | |
download | FreeBSD-src-261178d14f232fd1e66908a6c6e97c3a4cd36adc.zip FreeBSD-src-261178d14f232fd1e66908a6c6e97c3a4cd36adc.tar.gz |
- Express hard dependencies on bus (pci, isa, pccard) and
network layer (ether).
- Don't abuse module names to facilitate ifconfig module loading;
such abuse isn't really needed. (And if we do need type information
associated with a module then we should make it explicit and not
use hacks.)
Diffstat (limited to 'sys/pci/if_dc.c')
-rw-r--r-- | sys/pci/if_dc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/pci/if_dc.c b/sys/pci/if_dc.c index 240bdba..86fd9d5 100644 --- a/sys/pci/if_dc.c +++ b/sys/pci/if_dc.c @@ -131,6 +131,8 @@ __FBSDID("$FreeBSD$"); #include <pci/if_dcreg.h> +MODULE_DEPEND(dc, pci, 1, 1, 1); +MODULE_DEPEND(dc, ether, 1, 1, 1); MODULE_DEPEND(dc, miibus, 1, 1, 1); /* "controller miibus0" required. See GENERIC if you get errors here. */ @@ -306,8 +308,8 @@ SYSCTL_INT(_hw, OID_AUTO, dc_quick, CTLFLAG_RW, &dc_quick,0,"do not mdevget in dc driver"); #endif -DRIVER_MODULE(if_dc, cardbus, dc_driver, dc_devclass, 0, 0); -DRIVER_MODULE(if_dc, pci, dc_driver, dc_devclass, 0, 0); +DRIVER_MODULE(dc, cardbus, dc_driver, dc_devclass, 0, 0); +DRIVER_MODULE(dc, pci, dc_driver, dc_devclass, 0, 0); DRIVER_MODULE(miibus, dc, miibus_driver, miibus_devclass, 0, 0); #define DC_SETBIT(sc, reg, x) \ |