Skip to content

Commit

Permalink
Staging: wlan-ng: Eliminate local 'version.h'
Browse files Browse the repository at this point in the history
The kernel provides us with the proper version of this file.

Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Solomon Peachy authored and Greg Kroah-Hartman committed Jan 6, 2009
1 parent 905862c commit ff1ae8f
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 77 deletions.
3 changes: 0 additions & 3 deletions drivers/staging/wlan-ng/hfa384x_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,6 @@
/* System Includes */
#define WLAN_DBVAR prism2_debug

#include "version.h"


#include <linux/version.h>

#include <linux/module.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/wlan-ng/p80211conv.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@

#include <asm/byteorder.h>

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

/*================================================================*/
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/wlan-ng/p80211mod.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
#include <linux/wireless.h>
#include <linux/netdevice.h>

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

/*================================================================*/
Expand Down
5 changes: 2 additions & 3 deletions drivers/staging/wlan-ng/p80211netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@
/*================================================================*/
/* Project Includes */

#include "version.h"
#include "wlan_compat.h"
#include "p80211types.h"
#include "p80211hdr.h"
Expand Down Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/wlan-ng/p80211req.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
#include <net/sock.h>
#include <linux/netlink.h>

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

/*================================================================*/
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/wlan-ng/p80211wep.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
#include <linux/slab.h>
#include <linux/random.h>

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

// #define WEP_DEBUG
Expand Down
1 change: 0 additions & 1 deletion drivers/staging/wlan-ng/p80211wext.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
/*================================================================*/
/* Project Includes */

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

#include "p80211types.h"
Expand Down
3 changes: 0 additions & 3 deletions drivers/staging/wlan-ng/prism2mgmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@
/* System Includes */
#define WLAN_DBVAR prism2_debug

#include "version.h"


#include <linux/version.h>

#include <linux/if_arp.h>
Expand Down
3 changes: 0 additions & 3 deletions drivers/staging/wlan-ng/prism2mib.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@
/* System Includes */
#define WLAN_DBVAR prism2_debug

#include "version.h"


#include <linux/version.h>

#include <linux/module.h>
Expand Down
6 changes: 2 additions & 4 deletions drivers/staging/wlan-ng/prism2sta.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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,
Expand Down
56 changes: 0 additions & 56 deletions drivers/staging/wlan-ng/version.h

This file was deleted.

2 changes: 2 additions & 0 deletions drivers/staging/wlan-ng/wlan_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ff1ae8f

Please sign in to comment.