From 261178d14f232fd1e66908a6c6e97c3a4cd36adc Mon Sep 17 00:00:00 2001 From: mdodd 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/cnw/if_cnw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/cnw') diff --git a/sys/dev/cnw/if_cnw.c b/sys/dev/cnw/if_cnw.c index f890381..fb200d7 100644 --- a/sys/dev/cnw/if_cnw.c +++ b/sys/dev/cnw/if_cnw.c @@ -337,7 +337,8 @@ static driver_t cnw_pccard_driver = { static devclass_t cnw_pccard_devclass; -DRIVER_MODULE(if_cnw, pccard, cnw_pccard_driver, cnw_pccard_devclass, 0, 0); +DRIVER_MODULE(cnw, pccard, cnw_pccard_driver, cnw_pccard_devclass, 0, 0); +MODULE_DEPEND(cnw, ether, 1, 1, 1); #endif /* !defined(__FreeBSD__) */ -- cgit v1.1