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/dev/sn | |
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/dev/sn')
-rw-r--r-- | sys/dev/sn/if_sn_isa.c | 4 | ||||
-rw-r--r-- | sys/dev/sn/if_sn_pccard.c | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/sn/if_sn_isa.c b/sys/dev/sn/if_sn_isa.c index d31c2df..868220e 100644 --- a/sys/dev/sn/if_sn_isa.c +++ b/sys/dev/sn/if_sn_isa.c @@ -87,4 +87,6 @@ static driver_t sn_isa_driver = { extern devclass_t sn_devclass; -DRIVER_MODULE(if_sn, isa, sn_isa_driver, sn_devclass, 0, 0); +DRIVER_MODULE(sn, isa, sn_isa_driver, sn_devclass, 0, 0); +MODULE_DEPEND(sn, isa, 1, 1, 1); +MODULE_DEPEND(sn, ether, 1, 1, 1); diff --git a/sys/dev/sn/if_sn_pccard.c b/sys/dev/sn/if_sn_pccard.c index 88812bd..498db98 100644 --- a/sys/dev/sn/if_sn_pccard.c +++ b/sys/dev/sn/if_sn_pccard.c @@ -126,5 +126,6 @@ static driver_t sn_pccard_driver = { extern devclass_t sn_devclass; -DRIVER_MODULE(if_sn, pccard, sn_pccard_driver, sn_devclass, 0, 0); -MODULE_DEPEND(if_sn, pccard, 1, 1, 1); +DRIVER_MODULE(sn, pccard, sn_pccard_driver, sn_devclass, 0, 0); +MODULE_DEPEND(sn, pccard, 1, 1, 1); +MODULE_DEPEND(sn, ether, 1, 1, 1); |