libertas_tf: avoid warning about pr_fmt redefinition
authorJohn W. Linville <linville@tuxdriver.com>
Wed, 28 Apr 2010 20:12:57 +0000 (16:12 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 30 Apr 2010 18:38:28 +0000 (14:38 -0400)
Also includes a minor cleanup regarding quotation of a standard kernel
header file...

Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas_tf/cmd.c
drivers/net/wireless/libertas_tf/deb_defs.h
drivers/net/wireless/libertas_tf/if_usb.c
drivers/net/wireless/libertas_tf/libertas_tf.h
drivers/net/wireless/libertas_tf/main.c

index 22645e4028dec22bdae859e289d99bc0633b9f56..eb85019c1081b863e21e380ed707ee2b06dd1a16 100644 (file)
@@ -7,7 +7,8 @@
  *  the Free Software Foundation; either version 2 of the License, or (at
  *  your option) any later version.
  */
-#include "deb_defs.h"
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
 #include "libertas_tf.h"
 
 static const struct channel_range channel_ranges[] = {
index 9a3e92bec5fdc1d2c7e12712b85b213e15f9abb5..ae753962d8b5a35ae05500e2a898cdcd49ba7379 100644 (file)
@@ -9,8 +9,6 @@
 #define DRV_NAME "libertas_tf"
 #endif
 
-#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
-
 #include <linux/spinlock.h>
 
 #ifdef CONFIG_LIBERTAS_THINFIRM_DEBUG
index 919451a2ee4a118df1661a054c660b36b48ee333..827b7dc306b060a81c855fe03c0da5a9fbb5f8ee 100644 (file)
@@ -9,7 +9,8 @@
  */
 #define DRV_NAME "lbtf_usb"
 
-#include "deb_defs.h"
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
 #include "libertas_tf.h"
 #include "if_usb.h"
 
index 4cc42dd5a005258f10055bcaae3e61617e3bb2e9..fbbaaae7a1aefe4274c5ec0d31d58c2d0acdbe83 100644 (file)
@@ -13,6 +13,8 @@
 #include <linux/kthread.h>
 #include <net/mac80211.h>
 
+#include "deb_defs.h"
+
 #ifndef DRV_NAME
 #define DRV_NAME "libertas_tf"
 #endif
index a6b30d778f5c8f4b1b9585fcab39f4469d897381..895b557d664e0accfba2bf82dfd09f1a97bf7820 100644 (file)
@@ -7,9 +7,10 @@
  *  the Free Software Foundation; either version 2 of the License, or (at
  *  your option) any later version.
  */
-#include "deb_defs.h"
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
+#include <linux/etherdevice.h>
 #include "libertas_tf.h"
-#include "linux/etherdevice.h"
 
 #define DRIVER_RELEASE_VERSION "004.p0"
 /* thinfirm version: 5.132.X.pX */