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/em/if_em.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/dev/em/if_em.c') diff --git a/sys/dev/em/if_em.c b/sys/dev/em/if_em.c index 7554120c259f..11fac10796ba 100644 --- a/sys/dev/em/if_em.c +++ b/sys/dev/em/if_em.c @@ -174,7 +174,9 @@ static driver_t em_driver = { }; static devclass_t em_devclass; -DRIVER_MODULE(if_em, pci, em_driver, em_devclass, 0, 0); +DRIVER_MODULE(em, pci, em_driver, em_devclass, 0, 0); +MODULE_DEPEND(em, pci, 1, 1, 1); +MODULE_DEPEND(em, ether, 1, 1, 1); /********************************************************************* * Device identification routine -- cgit v1.3