[PATCH 32/49] Staging: wlan-ng: Eliminate local 'version.h'



From: Solomon Peachy <pizza@xxxxxxxxxxxx>

The kernel provides us with the proper version of this file.

Signed-off-by: Solomon Peachy <pizza@xxxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxx>
---
drivers/staging/wlan-ng/hfa384x_usb.c | 3 --
drivers/staging/wlan-ng/p80211conv.c | 1 -
drivers/staging/wlan-ng/p80211mod.c | 1 -
drivers/staging/wlan-ng/p80211netdev.c | 5 +--
drivers/staging/wlan-ng/p80211req.c | 1 -
drivers/staging/wlan-ng/p80211wep.c | 1 -
drivers/staging/wlan-ng/p80211wext.c | 1 -
drivers/staging/wlan-ng/prism2mgmt.c | 3 --
drivers/staging/wlan-ng/prism2mib.c | 3 --
drivers/staging/wlan-ng/prism2sta.c | 6 +--
drivers/staging/wlan-ng/version.h | 56 --------------------------------
drivers/staging/wlan-ng/wlan_compat.h | 2 +
12 files changed, 6 insertions(+), 77 deletions(-)
delete mode 100644 drivers/staging/wlan-ng/version.h

diff --git a/drivers/staging/wlan-ng/hfa384x_usb.c b/drivers/staging/wlan-ng/hfa384x_usb.c
index 0670068..53c547d 100644
--- a/drivers/staging/wlan-ng/hfa384x_usb.c
+++ b/drivers/staging/wlan-ng/hfa384x_usb.c
@@ -114,9 +114,6 @@
/* System Includes */
#define WLAN_DBVAR prism2_debug

-#include "version.h"
-
-
#include <linux/version.h>

#include <linux/module.h>
diff --git a/drivers/staging/wlan-ng/p80211conv.c b/drivers/staging/wlan-ng/p80211conv.c
index aaf1c9d..749ea8d 100644
--- a/drivers/staging/wlan-ng/p80211conv.c
+++ b/drivers/staging/wlan-ng/p80211conv.c
@@ -70,7 +70,6 @@

#include <asm/byteorder.h>

-#include "version.h"
#include "wlan_compat.h"

/*================================================================*/
diff --git a/drivers/staging/wlan-ng/p80211mod.c b/drivers/staging/wlan-ng/p80211mod.c
index 7a3834e..29cae87 100644
--- a/drivers/staging/wlan-ng/p80211mod.c
+++ b/drivers/staging/wlan-ng/p80211mod.c
@@ -68,7 +68,6 @@
#include <linux/wireless.h>
#include <linux/netdevice.h>

-#include "version.h"
#include "wlan_compat.h"

/*================================================================*/
diff --git a/drivers/staging/wlan-ng/p80211netdev.c b/drivers/staging/wlan-ng/p80211netdev.c
index 40d0b78..9d64e0b 100644
--- a/drivers/staging/wlan-ng/p80211netdev.c
+++ b/drivers/staging/wlan-ng/p80211netdev.c
@@ -85,7 +85,6 @@
/*================================================================*/
/* Project Includes */

-#include "version.h"
#include "wlan_compat.h"
#include "p80211types.h"
#include "p80211hdr.h"
@@ -1102,8 +1101,8 @@ p80211netdev_proc_read(
goto exit;
}

- p += sprintf(p, "p80211 version: %s (%s)\n\n",
- WLAN_RELEASE, WLAN_BUILD_DATE);
+ p += sprintf(p, "p80211 version: %s\n\n",
+ WLAN_RELEASE);
p += sprintf(p, "name : %s\n", wlandev->name);
p += sprintf(p, "nsd name : %s\n", wlandev->nsdname);
p += sprintf(p, "address : %02x:%02x:%02x:%02x:%02x:%02x\n",
diff --git a/drivers/staging/wlan-ng/p80211req.c b/drivers/staging/wlan-ng/p80211req.c
index 0233abe..83bd65b 100644
--- a/drivers/staging/wlan-ng/p80211req.c
+++ b/drivers/staging/wlan-ng/p80211req.c
@@ -68,7 +68,6 @@
#include <net/sock.h>
#include <linux/netlink.h>

-#include "version.h"
#include "wlan_compat.h"

/*================================================================*/
diff --git a/drivers/staging/wlan-ng/p80211wep.c b/drivers/staging/wlan-ng/p80211wep.c
index 11a50c7..0ab0d07 100644
--- a/drivers/staging/wlan-ng/p80211wep.c
+++ b/drivers/staging/wlan-ng/p80211wep.c
@@ -56,7 +56,6 @@
#include <linux/slab.h>
#include <linux/random.h>

-#include "version.h"
#include "wlan_compat.h"

// #define WEP_DEBUG
diff --git a/drivers/staging/wlan-ng/p80211wext.c b/drivers/staging/wlan-ng/p80211wext.c
index c1ab0f8..9936b5c 100644
--- a/drivers/staging/wlan-ng/p80211wext.c
+++ b/drivers/staging/wlan-ng/p80211wext.c
@@ -56,7 +56,6 @@
/*================================================================*/
/* Project Includes */

-#include "version.h"
#include "wlan_compat.h"

#include "p80211types.h"
diff --git a/drivers/staging/wlan-ng/prism2mgmt.c b/drivers/staging/wlan-ng/prism2mgmt.c
index de2ec1e..c2f61ed 100644
--- a/drivers/staging/wlan-ng/prism2mgmt.c
+++ b/drivers/staging/wlan-ng/prism2mgmt.c
@@ -61,9 +61,6 @@
/* System Includes */
#define WLAN_DBVAR prism2_debug

-#include "version.h"
-
-
#include <linux/version.h>

#include <linux/if_arp.h>
diff --git a/drivers/staging/wlan-ng/prism2mib.c b/drivers/staging/wlan-ng/prism2mib.c
index 5785ff9..5a8dffc 100644
--- a/drivers/staging/wlan-ng/prism2mib.c
+++ b/drivers/staging/wlan-ng/prism2mib.c
@@ -54,9 +54,6 @@
/* System Includes */
#define WLAN_DBVAR prism2_debug

-#include "version.h"
-
-
#include <linux/version.h>

#include <linux/module.h>
diff --git a/drivers/staging/wlan-ng/prism2sta.c b/drivers/staging/wlan-ng/prism2sta.c
index 8ce1ee9..05c0480 100644
--- a/drivers/staging/wlan-ng/prism2sta.c
+++ b/drivers/staging/wlan-ng/prism2sta.c
@@ -54,8 +54,6 @@
/* System Includes */
#define WLAN_DBVAR prism2_debug

-#include "version.h"
-
#include <linux/version.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
@@ -2221,9 +2219,9 @@ prism2sta_proc_read(
// XXX 0x0001 for prism2.5/3, 0x0000 for prism2.
hwtype = BIT0;

- p += sprintf(p, "# %s version %s (%s)\n\n",
+ p += sprintf(p, "# %s version %s\n\n",
dev_info,
- WLAN_RELEASE, WLAN_BUILD_DATE);
+ WLAN_RELEASE);

p += sprintf(p, "# nic h/w: id=0x%02x %d.%d.%d\n",
hw->ident_nic.id, hw->ident_nic.major,
diff --git a/drivers/staging/wlan-ng/version.h b/drivers/staging/wlan-ng/version.h
deleted file mode 100644
index 86190a1..0000000
--- a/drivers/staging/wlan-ng/version.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/* src/include/wlan/version.h
-*
-*
-* Copyright (C) 1999 AbsoluteValue Systems, Inc. All Rights Reserved.
-* --------------------------------------------------------------------
-*
-* linux-wlan
-*
-* The contents of this file are subject to the Mozilla Public
-* License Version 1.1 (the "License"); you may not use this file
-* except in compliance with the License. You may obtain a copy of
-* the License at http://www.mozilla.org/MPL/
-*
-* Software distributed under the License is distributed on an "AS
-* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
-* implied. See the License for the specific language governing
-* rights and limitations under the License.
-*
-* Alternatively, the contents of this file may be used under the
-* terms of the GNU Public License version 2 (the "GPL"), in which
-* case the provisions of the GPL are applicable instead of the
-* above. If you wish to allow the use of your version of this file
-* only under the terms of the GPL and not to allow others to use
-* your version of this file under the MPL, indicate your decision
-* by deleting the provisions above and replace them with the notice
-* and other provisions required by the GPL. If you do not delete
-* the provisions above, a recipient may use your version of this
-* file under either the MPL or the GPL.
-*
-* --------------------------------------------------------------------
-*
-* Inquiries regarding the linux-wlan Open Source project can be
-* made directly to:
-*
-* AbsoluteValue Systems Inc.
-* info@xxxxxxxxxxxxxx
-* http://www.linux-wlan.com
-*
-* --------------------------------------------------------------------
-*
-* Portions of the development of this software were funded by
-* Intersil Corporation as part of PRISM(R) chipset product development.
-*
-* --------------------------------------------------------------------
-*/
-#ifndef _WLAN_VERSION_H
-#define _WLAN_VERSION_H
-#ifndef KERNEL_VERSION
-#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
-#endif
-
-#define WLAN_RELEASE "0.2.8"
-#define WLAN_RELEASE_CODE 0x000208
-#define WLAN_BUILD_DATE "Thu Oct 2 11:04:42 PDT 2008"
-
-#endif
diff --git a/drivers/staging/wlan-ng/wlan_compat.h b/drivers/staging/wlan-ng/wlan_compat.h
index 3127754..0ecc3fa 100644
--- a/drivers/staging/wlan-ng/wlan_compat.h
+++ b/drivers/staging/wlan-ng/wlan_compat.h
@@ -134,6 +134,8 @@ typedef int64_t INT64;
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
#endif

+#define WLAN_RELEASE "0.3.0-lkml"
+
#include <linux/hardirq.h>

#define WLAN_LOG_ERROR(x,args...) printk(KERN_ERR "%s: " x , __func__ , ##args);
--
1.6.0.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • [PATCH] change libata license from OSL+GPL to GPL
    ... - changes license of all code from OSL+GPL to plain ole GPL ... indicate your decision by deleting the provisions above and ...
    (Linux-Kernel)
  • Re: Document database with web frontend
    ... > available under the provisions of the GPL or some similar license. ... ..."1978 gli dči se ne vanno, gli arrabbiati restano!", Area 1978 ...
    (comp.os.linux.misc)
  • Re: Copyleft and embedded Forth
    ... rights of another. ... Developer may do with p.d. ... Use isn't an issue with any free software license. ... You have to choose to use GPL software. ...
    (comp.lang.forth)
  • Re: module license taints kernel.
    ... you can't use a license ... At least this is how the GPL is ... you cannot use a license to turn actions that do not violate ... copyright law, not as defined in the GPL or in the common sense ...
    (comp.os.linux.development.system)
  • Re: GPL compliance
    ... Your main intent seems to be to spread FUD about the GPL and because ... every piece of code that is packaged has a copyright file. ... worrying only about the Canonical license for the whole CD and I was ... what does Red Hat have to do with it? ...
    (Ubuntu)

Loading