Эх сурвалжийг харах

iwlwifi: driver version track kernel version

The driver version number is a remnant from when there was an out-of-tree
iwlwifi driver. Now that the driver forms part of kernel source we do not
need a separate driver version. Instead, we now use the kernel version as
driver version. We maintain the previous tags used to indicate which
components the driver has been compiled with.

Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Acked-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Reinette Chatre 15 жил өмнө
parent
commit
250cce26d5

+ 3 - 1
drivers/net/wireless/iwlwifi/iwl-core.h

@@ -63,6 +63,8 @@
 #ifndef __iwl_core_h__
 #ifndef __iwl_core_h__
 #define __iwl_core_h__
 #define __iwl_core_h__
 
 
+#include <linux/utsrelease.h>
+
 /************************
 /************************
  * forward declarations *
  * forward declarations *
  ************************/
  ************************/
@@ -70,7 +72,7 @@ struct iwl_host_cmd;
 struct iwl_cmd;
 struct iwl_cmd;
 
 
 
 
-#define IWLWIFI_VERSION "1.3.27k"
+#define IWLWIFI_VERSION UTS_RELEASE "-k"
 #define DRV_COPYRIGHT	"Copyright(c) 2003-2009 Intel Corporation"
 #define DRV_COPYRIGHT	"Copyright(c) 2003-2009 Intel Corporation"
 #define DRV_AUTHOR     "<ilw@linux.intel.com>"
 #define DRV_AUTHOR     "<ilw@linux.intel.com>"
 
 

+ 1 - 3
drivers/net/wireless/iwlwifi/iwl3945-base.c

@@ -76,11 +76,9 @@
 #define VS
 #define VS
 #endif
 #endif
 
 
-#define IWL39_VERSION "1.2.26k" VD VS
+#define DRV_VERSION  IWLWIFI_VERSION VD VS
 #define DRV_COPYRIGHT	"Copyright(c) 2003-2009 Intel Corporation"
 #define DRV_COPYRIGHT	"Copyright(c) 2003-2009 Intel Corporation"
 #define DRV_AUTHOR     "<ilw@linux.intel.com>"
 #define DRV_AUTHOR     "<ilw@linux.intel.com>"
-#define DRV_VERSION     IWL39_VERSION
-
 
 
 MODULE_DESCRIPTION(DRV_DESCRIPTION);
 MODULE_DESCRIPTION(DRV_DESCRIPTION);
 MODULE_VERSION(DRV_VERSION);
 MODULE_VERSION(DRV_VERSION);