From 9e4c647c74846b9f7faeba5ed8979ca9b2f6be9a Mon Sep 17 00:00:00 2001 From: Bill Paul Date: Wed, 22 Sep 1999 06:08:11 +0000 Subject: Tweak these for what I hope is the last time: change the DRIVER_MODULE() declaration for the interface driver from "foo" to "if_foo" but leave the declaration for the miibus attached to the interface driver alone. This lets the internal module name be "if_foo" while still allowing the miibus instances to attach to "foo." This should allow ifconfig to autoload driver modules again without breaking the miibus attach. --- sys/dev/sf/if_sf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/sf') diff --git a/sys/dev/sf/if_sf.c b/sys/dev/sf/if_sf.c index 35d6f2909fa5..5f02606004d7 100644 --- a/sys/dev/sf/if_sf.c +++ b/sys/dev/sf/if_sf.c @@ -208,7 +208,7 @@ static driver_t sf_driver = { static devclass_t sf_devclass; -DRIVER_MODULE(sf, pci, sf_driver, sf_devclass, 0, 0); +DRIVER_MODULE(if_sf, pci, sf_driver, sf_devclass, 0, 0); DRIVER_MODULE(miibus, sf, miibus_driver, miibus_devclass, 0, 0); #define SF_SETBIT(sc, reg, x) \ -- cgit v1.3