diff options
author | Matthew N. Dodd <mdodd@FreeBSD.org> | 2003-04-15 06:37:30 +0000 |
---|---|---|
committer | Matthew N. Dodd <mdodd@FreeBSD.org> | 2003-04-15 06:37:30 +0000 |
commit | f246e4a17fd469ab781124a678e103d44d637c5f (patch) | |
tree | 1bdd3154994e1ca8f70eb0f16c9b58a107fcc11e /sys/dev/nge | |
parent | 10646d5f83c7e84f352d3ea4d96caeb6c166859b (diff) | |
download | src-f246e4a17fd469ab781124a678e103d44d637c5f.tar.gz src-f246e4a17fd469ab781124a678e103d44d637c5f.zip |
- 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.)
Notes
Notes:
svn path=/head/; revision=113506
Diffstat (limited to 'sys/dev/nge')
-rw-r--r-- | sys/dev/nge/if_nge.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/nge/if_nge.c b/sys/dev/nge/if_nge.c index e463c52d0478..0c30ab287dbc 100644 --- a/sys/dev/nge/if_nge.c +++ b/sys/dev/nge/if_nge.c @@ -126,6 +126,8 @@ __FBSDID("$FreeBSD$"); #include <dev/nge/if_ngereg.h> +MODULE_DEPEND(nge, pci, 1, 1, 1); +MODULE_DEPEND(nge, ether, 1, 1, 1); MODULE_DEPEND(nge, miibus, 1, 1, 1); /* "controller miibus0" required. See GENERIC if you get errors here. */ @@ -222,7 +224,7 @@ static driver_t nge_driver = { static devclass_t nge_devclass; -DRIVER_MODULE(if_nge, pci, nge_driver, nge_devclass, 0, 0); +DRIVER_MODULE(nge, pci, nge_driver, nge_devclass, 0, 0); DRIVER_MODULE(miibus, nge, miibus_driver, miibus_devclass, 0, 0); #define NGE_SETBIT(sc, reg, x) \ |