diff options
author | bschmidt <bschmidt@FreeBSD.org> | 2011-05-31 19:08:25 +0000 |
---|---|---|
committer | bschmidt <bschmidt@FreeBSD.org> | 2011-05-31 19:08:25 +0000 |
commit | aafd4acbe269dfc8d327a76e9fc41a8aa628cccf (patch) | |
tree | 4512932e3074c1c9f13fe4f5b824420b6720eca8 /sys/dev/wpi/if_wpi.c | |
parent | b46c0fe606309a6413cf0055a83f3c47611da1d2 (diff) | |
download | FreeBSD-src-aafd4acbe269dfc8d327a76e9fc41a8aa628cccf.zip FreeBSD-src-aafd4acbe269dfc8d327a76e9fc41a8aa628cccf.tar.gz |
Add module version to iwi/ipw/wpi and iwn.
The version is used to check if a module is already preset, not setting
it results in:
can't re-use a leaf (ipw)!
module_register: module pci/ipw already exists!
Module pci/ipw failed to register: 17
while trying to load the module due to an entry in loader.conf. With this
commit we get the expected:
module ipw already present!
Reported by: Dru Lavigne, bz
Tested by: bz
MFC after: 1 week
Diffstat (limited to 'sys/dev/wpi/if_wpi.c')
-rw-r--r-- | sys/dev/wpi/if_wpi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/wpi/if_wpi.c b/sys/dev/wpi/if_wpi.c index e1fffe1..38ebb7e 100644 --- a/sys/dev/wpi/if_wpi.c +++ b/sys/dev/wpi/if_wpi.c @@ -273,6 +273,8 @@ static devclass_t wpi_devclass; DRIVER_MODULE(wpi, pci, wpi_driver, wpi_devclass, 0, 0); +MODULE_VERSION(wpi, 1); + static const uint8_t wpi_ridx_to_plcp[] = { /* OFDM: IEEE Std 802.11a-1999, pp. 14 Table 80 */ /* R1-R4 (ral/ural is R4-R1) */ |