summaryrefslogtreecommitdiffstats
path: root/sys/dev/sk
diff options
context:
space:
mode:
authormdodd <mdodd@FreeBSD.org>2003-04-15 06:37:30 +0000
committermdodd <mdodd@FreeBSD.org>2003-04-15 06:37:30 +0000
commit261178d14f232fd1e66908a6c6e97c3a4cd36adc (patch)
tree1bdd3154994e1ca8f70eb0f16c9b58a107fcc11e /sys/dev/sk
parente7e7ff6c1cee7cfcbfd15e9651917287a315e054 (diff)
downloadFreeBSD-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/sk')
-rw-r--r--sys/dev/sk/if_sk.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/sk/if_sk.c b/sys/dev/sk/if_sk.c
index 32e13ab..8b15c5c 100644
--- a/sys/dev/sk/if_sk.c
+++ b/sys/dev/sk/if_sk.c
@@ -107,6 +107,8 @@ __FBSDID("$FreeBSD$");
#include <pci/if_skreg.h>
#include <pci/xmaciireg.h>
+MODULE_DEPEND(sk, pci, 1, 1, 1);
+MODULE_DEPEND(sk, ether, 1, 1, 1);
MODULE_DEPEND(sk, miibus, 1, 1, 1);
/* "controller miibus0" required. See GENERIC if you get errors here. */
@@ -236,7 +238,7 @@ static driver_t sk_driver = {
static devclass_t sk_devclass;
-DRIVER_MODULE(if_sk, pci, skc_driver, skc_devclass, 0, 0);
+DRIVER_MODULE(sk, pci, skc_driver, skc_devclass, 0, 0);
DRIVER_MODULE(sk, skc, sk_driver, sk_devclass, 0, 0);
DRIVER_MODULE(miibus, sk, miibus_driver, miibus_devclass, 0, 0);
OpenPOWER on IntegriCloud