Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 May 2011 19:08:26 +0000 (UTC)
From:      Bernhard Schmidt <bschmidt@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r222543 - in head/sys/dev: ipw iwi iwn wpi
Message-ID:  <201105311908.p4VJ8QJ5036436@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bschmidt
Date: Tue May 31 19:08:25 2011
New Revision: 222543
URL: http://svn.freebsd.org/changeset/base/222543

Log:
  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

Modified:
  head/sys/dev/ipw/if_ipw.c
  head/sys/dev/iwi/if_iwi.c
  head/sys/dev/iwn/if_iwn.c
  head/sys/dev/wpi/if_wpi.c

Modified: head/sys/dev/ipw/if_ipw.c
==============================================================================
--- head/sys/dev/ipw/if_ipw.c	Tue May 31 18:45:15 2011	(r222542)
+++ head/sys/dev/ipw/if_ipw.c	Tue May 31 19:08:25 2011	(r222543)
@@ -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)
 {

Modified: head/sys/dev/iwi/if_iwi.c
==============================================================================
--- head/sys/dev/iwi/if_iwi.c	Tue May 31 18:45:15 2011	(r222542)
+++ head/sys/dev/iwi/if_iwi.c	Tue May 31 19:08:25 2011	(r222543)
@@ -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)
 {

Modified: head/sys/dev/iwn/if_iwn.c
==============================================================================
--- head/sys/dev/iwn/if_iwn.c	Tue May 31 18:45:15 2011	(r222542)
+++ head/sys/dev/iwn/if_iwn.c	Tue May 31 19:08:25 2011	(r222543)
@@ -401,6 +401,8 @@ static devclass_t iwn_devclass;
 
 DRIVER_MODULE(iwn, pci, iwn_driver, iwn_devclass, 0, 0);
 
+MODULE_VERSION(iwn, 1);
+
 MODULE_DEPEND(iwn, firmware, 1, 1, 1);
 MODULE_DEPEND(iwn, pci, 1, 1, 1);
 MODULE_DEPEND(iwn, wlan, 1, 1, 1);

Modified: head/sys/dev/wpi/if_wpi.c
==============================================================================
--- head/sys/dev/wpi/if_wpi.c	Tue May 31 18:45:15 2011	(r222542)
+++ head/sys/dev/wpi/if_wpi.c	Tue May 31 19:08:25 2011	(r222543)
@@ -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) */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105311908.p4VJ8QJ5036436>