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/iwi/if_iwi.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/iwi/if_iwi.c')
-rw-r--r-- | sys/dev/iwi/if_iwi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/iwi/if_iwi.c b/sys/dev/iwi/if_iwi.c index dc81309..73b861c 100644 --- a/sys/dev/iwi/if_iwi.c +++ b/sys/dev/iwi/if_iwi.c @@ -232,6 +232,8 @@ static devclass_t iwi_devclass; DRIVER_MODULE(iwi, pci, iwi_driver, iwi_devclass, 0, 0); +MODULE_VERSION(iwi, 1); + static __inline uint8_t MEM_READ_1(struct iwi_softc *sc, uint32_t addr) { |