From f246e4a17fd469ab781124a678e103d44d637c5f Mon Sep 17 00:00:00 2001 From: "Matthew N. Dodd" Date: Tue, 15 Apr 2003 06:37:30 +0000 Subject: - 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.) --- sys/dev/tx/if_tx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/dev/tx') diff --git a/sys/dev/tx/if_tx.c b/sys/dev/tx/if_tx.c index 189a69ef8906..608daa0a6db2 100644 --- a/sys/dev/tx/if_tx.c +++ b/sys/dev/tx/if_tx.c @@ -81,6 +81,8 @@ #include #include +MODULE_DEPEND(tx, pci, 1, 1, 1); +MODULE_DEPEND(tx, ether, 1, 1, 1); MODULE_DEPEND(tx, miibus, 1, 1, 1); static int epic_ifioctl(register struct ifnet *, u_long, caddr_t); @@ -151,7 +153,7 @@ static driver_t epic_driver = { static devclass_t epic_devclass; -DRIVER_MODULE(if_tx, pci, epic_driver, epic_devclass, 0, 0); +DRIVER_MODULE(tx, pci, epic_driver, epic_devclass, 0, 0); DRIVER_MODULE(miibus, tx, miibus_driver, miibus_devclass, 0, 0); static struct epic_type epic_devs[] = { -- cgit v1.3