summaryrefslogtreecommitdiffstats
path: root/sys/dev/snc
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/snc
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/snc')
-rw-r--r--sys/dev/snc/if_snc_cbus.c4
-rw-r--r--sys/dev/snc/if_snc_pccard.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/snc/if_snc_cbus.c b/sys/dev/snc/if_snc_cbus.c
index 3d207a7..0a5af7e 100644
--- a/sys/dev/snc/if_snc_cbus.c
+++ b/sys/dev/snc/if_snc_cbus.c
@@ -216,4 +216,6 @@ static driver_t snc_isa_driver = {
sizeof(struct snc_softc)
};
-DRIVER_MODULE(if_snc, isa, snc_isa_driver, snc_devclass, 0, 0);
+DRIVER_MODULE(snc, isa, snc_isa_driver, snc_devclass, 0, 0);
+MODULE_DEPEND(snc, isa, 1, 1, 1);
+MODULE_DEPEND(snc, ether, 1, 1, 1);
diff --git a/sys/dev/snc/if_snc_pccard.c b/sys/dev/snc/if_snc_pccard.c
index 4c9b923..ae5aaf9 100644
--- a/sys/dev/snc/if_snc_pccard.c
+++ b/sys/dev/snc/if_snc_pccard.c
@@ -76,7 +76,9 @@ static driver_t snc_pccard_driver = {
sizeof(struct snc_softc)
};
-DRIVER_MODULE(if_snc, pccard, snc_pccard_driver, snc_devclass, 0, 0);
+DRIVER_MODULE(snc, pccard, snc_pccard_driver, snc_devclass, 0, 0);
+MODULE_DEPEND(snc, ether, 1, 1, 1);
+MODULE_DEPEND(snc, pccard, 1, 1, 1);
/*
* snc_pccard_detach - unload the driver and clear the table.
OpenPOWER on IntegriCloud