aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/wpi
diff options
context:
space:
mode:
authorBernhard Schmidt <bschmidt@FreeBSD.org>2011-05-31 19:08:25 +0000
committerBernhard Schmidt <bschmidt@FreeBSD.org>2011-05-31 19:08:25 +0000
commit129145a426a2aa889831d3216d7ce32ae88d7571 (patch)
tree4512932e3074c1c9f13fe4f5b824420b6720eca8 /sys/dev/wpi
parent20e43c4aaca0dd5e759438706d747a423ee884f8 (diff)
downloadsrc-129145a426a2aa889831d3216d7ce32ae88d7571.tar.gz
src-129145a426a2aa889831d3216d7ce32ae88d7571.zip
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
Notes
Notes: svn path=/head/; revision=222543
Diffstat (limited to 'sys/dev/wpi')
-rw-r--r--sys/dev/wpi/if_wpi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/wpi/if_wpi.c b/sys/dev/wpi/if_wpi.c
index e1fffe14214e..38ebb7e4cc8b 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) */