diff options
author | wpaul <wpaul@FreeBSD.org> | 1999-09-22 06:08:11 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1999-09-22 06:08:11 +0000 |
commit | a8e68085ed8290414051fc0e6565acaa0d076a12 (patch) | |
tree | 3858adbac2b122730f63bc1a40fc2e8ae3f21bae /sys/dev | |
parent | 2817a59f503d7cc04787d396baad85b1e9c62dfc (diff) | |
download | FreeBSD-src-a8e68085ed8290414051fc0e6565acaa0d076a12.zip FreeBSD-src-a8e68085ed8290414051fc0e6565acaa0d076a12.tar.gz |
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.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/fxp/if_fxp.c | 2 | ||||
-rw-r--r-- | sys/dev/sf/if_sf.c | 2 | ||||
-rw-r--r-- | sys/dev/sk/if_sk.c | 2 | ||||
-rw-r--r-- | sys/dev/ti/if_ti.c | 2 | ||||
-rw-r--r-- | sys/dev/vr/if_vr.c | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c index 84cabd2..d2438e3 100644 --- a/sys/dev/fxp/if_fxp.c +++ b/sys/dev/fxp/if_fxp.c @@ -701,7 +701,7 @@ static driver_t fxp_driver = { static devclass_t fxp_devclass; -DRIVER_MODULE(fxp, pci, fxp_driver, fxp_devclass, 0, 0); +DRIVER_MODULE(if_fxp, pci, fxp_driver, fxp_devclass, 0, 0); #endif /* __NetBSD__ */ diff --git a/sys/dev/sf/if_sf.c b/sys/dev/sf/if_sf.c index 35d6f29..5f02606 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) \ diff --git a/sys/dev/sk/if_sk.c b/sys/dev/sk/if_sk.c index d80e4ab..fdea86f 100644 --- a/sys/dev/sk/if_sk.c +++ b/sys/dev/sk/if_sk.c @@ -181,7 +181,7 @@ static driver_t sk_driver = { static devclass_t sk_devclass; -DRIVER_MODULE(skc, pci, sk_driver, sk_devclass, 0, 0); +DRIVER_MODULE(if_sk, pci, sk_driver, sk_devclass, 0, 0); #define SK_SETBIT(sc, reg, x) \ CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) | x) diff --git a/sys/dev/ti/if_ti.c b/sys/dev/ti/if_ti.c index 7fefb8e..947f6c1 100644 --- a/sys/dev/ti/if_ti.c +++ b/sys/dev/ti/if_ti.c @@ -224,7 +224,7 @@ static driver_t ti_driver = { static devclass_t ti_devclass; -DRIVER_MODULE(ti, pci, ti_driver, ti_devclass, 0, 0); +DRIVER_MODULE(if_ti, pci, ti_driver, ti_devclass, 0, 0); /* * Send an instruction or address to the EEPROM, check for ACK. diff --git a/sys/dev/vr/if_vr.c b/sys/dev/vr/if_vr.c index 7ed0d86..af3ae7e 100644 --- a/sys/dev/vr/if_vr.c +++ b/sys/dev/vr/if_vr.c @@ -202,7 +202,7 @@ static driver_t vr_driver = { static devclass_t vr_devclass; -DRIVER_MODULE(vr, pci, vr_driver, vr_devclass, 0, 0); +DRIVER_MODULE(if_vr, pci, vr_driver, vr_devclass, 0, 0); DRIVER_MODULE(miibus, vr, miibus_driver, miibus_devclass, 0, 0); #define VR_SETBIT(sc, reg, x) \ |