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/ar | |
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/ar')
-rw-r--r-- | sys/dev/ar/if_ar_isa.c | 3 | ||||
-rw-r--r-- | sys/dev/ar/if_ar_pci.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/ar/if_ar_isa.c b/sys/dev/ar/if_ar_isa.c index d525359..f4fed80 100644 --- a/sys/dev/ar/if_ar_isa.c +++ b/sys/dev/ar/if_ar_isa.c @@ -90,7 +90,8 @@ static driver_t ar_isa_driver = { sizeof (struct ar_hardc) }; -DRIVER_MODULE(if_ar, isa, ar_isa_driver, ar_devclass, 0, 0); +DRIVER_MODULE(ar, isa, ar_isa_driver, ar_devclass, 0, 0); +MODULE_DEPEND(ar, isa, 1, 1, 1); /* * Probe to see if it is there. diff --git a/sys/dev/ar/if_ar_pci.c b/sys/dev/ar/if_ar_pci.c index d14b416..314e859 100644 --- a/sys/dev/ar/if_ar_pci.c +++ b/sys/dev/ar/if_ar_pci.c @@ -71,7 +71,8 @@ static driver_t ar_pci_driver = { sizeof(struct ar_hardc), }; -DRIVER_MODULE(if_ar, pci, ar_pci_driver, ar_devclass, 0, 0); +DRIVER_MODULE(ar, pci, ar_pci_driver, ar_devclass, 0, 0); +MODULE_DEPEND(ar, pci, 1, 1, 1); static int ar_pci_probe(device_t device) |