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/gx/if_gx.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/dev/gx') diff --git a/sys/dev/gx/if_gx.c b/sys/dev/gx/if_gx.c index 8d59cd6..a9c3433 100644 --- a/sys/dev/gx/if_gx.c +++ b/sys/dev/gx/if_gx.c @@ -72,6 +72,8 @@ #include #include +MODULE_DEPEND(gx, pci, 1, 1, 1); +MODULE_DEPEND(gx, ether, 1, 1, 1); MODULE_DEPEND(gx, miibus, 1, 1, 1); #include "miibus_if.h" @@ -196,7 +198,7 @@ static driver_t gx_driver = { static devclass_t gx_devclass; -DRIVER_MODULE(if_gx, pci, gx_driver, gx_devclass, 0, 0); +DRIVER_MODULE(gx, pci, gx_driver, gx_devclass, 0, 0); DRIVER_MODULE(miibus, gx, miibus_driver, miibus_devclass, 0, 0); static struct gx_device * -- cgit v1.1