From aafd4acbe269dfc8d327a76e9fc41a8aa628cccf Mon Sep 17 00:00:00 2001 From: bschmidt Date: Tue, 31 May 2011 19:08:25 +0000 Subject: 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 --- sys/dev/ipw/if_ipw.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/dev/ipw/if_ipw.c') diff --git a/sys/dev/ipw/if_ipw.c b/sys/dev/ipw/if_ipw.c index db76bfa..7560430 100644 --- a/sys/dev/ipw/if_ipw.c +++ b/sys/dev/ipw/if_ipw.c @@ -199,6 +199,8 @@ static devclass_t ipw_devclass; DRIVER_MODULE(ipw, pci, ipw_driver, ipw_devclass, 0, 0); +MODULE_VERSION(ipw, 1); + static int ipw_probe(device_t dev) { -- cgit v1.1