aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath5k
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/ath5k')
-rw-r--r--drivers/net/wireless/ath/ath5k/ani.c44
-rw-r--r--drivers/net/wireless/ath/ath5k/ath5k.h29
-rw-r--r--drivers/net/wireless/ath/ath5k/attach.c2
-rw-r--r--drivers/net/wireless/ath/ath5k/base.c22
-rw-r--r--drivers/net/wireless/ath/ath5k/debug.c17
-rw-r--r--drivers/net/wireless/ath/ath5k/desc.c6
-rw-r--r--drivers/net/wireless/ath/ath5k/dma.c2
-rw-r--r--drivers/net/wireless/ath/ath5k/eeprom.c2
-rw-r--r--drivers/net/wireless/ath/ath5k/initvals.c5
-rw-r--r--drivers/net/wireless/ath/ath5k/led.c2
-rw-r--r--drivers/net/wireless/ath/ath5k/mac80211-ops.c2
-rw-r--r--drivers/net/wireless/ath/ath5k/pci.c4
-rw-r--r--drivers/net/wireless/ath/ath5k/phy.c2
-rw-r--r--drivers/net/wireless/ath/ath5k/qcu.c2
-rw-r--r--drivers/net/wireless/ath/ath5k/reset.c2
-rw-r--r--drivers/net/wireless/ath/ath5k/sysfs.c2
16 files changed, 93 insertions, 52 deletions
diff --git a/drivers/net/wireless/ath/ath5k/ani.c b/drivers/net/wireless/ath/ath5k/ani.c
index 35e93704c4ef..5c008757662b 100644
--- a/drivers/net/wireless/ath/ath5k/ani.c
+++ b/drivers/net/wireless/ath/ath5k/ani.c
@@ -14,6 +14,8 @@
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 */ 15 */
16 16
17#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
18
17#include "ath5k.h" 19#include "ath5k.h"
18#include "reg.h" 20#include "reg.h"
19#include "debug.h" 21#include "debug.h"
@@ -728,33 +730,25 @@ void
728ath5k_ani_print_counters(struct ath5k_hw *ah) 730ath5k_ani_print_counters(struct ath5k_hw *ah)
729{ 731{
730 /* clears too */ 732 /* clears too */
731 printk(KERN_NOTICE "ACK fail\t%d\n", 733 pr_notice("ACK fail\t%d\n", ath5k_hw_reg_read(ah, AR5K_ACK_FAIL));
732 ath5k_hw_reg_read(ah, AR5K_ACK_FAIL)); 734 pr_notice("RTS fail\t%d\n", ath5k_hw_reg_read(ah, AR5K_RTS_FAIL));
733 printk(KERN_NOTICE "RTS fail\t%d\n", 735 pr_notice("RTS success\t%d\n", ath5k_hw_reg_read(ah, AR5K_RTS_OK));
734 ath5k_hw_reg_read(ah, AR5K_RTS_FAIL)); 736 pr_notice("FCS error\t%d\n", ath5k_hw_reg_read(ah, AR5K_FCS_FAIL));
735 printk(KERN_NOTICE "RTS success\t%d\n",
736 ath5k_hw_reg_read(ah, AR5K_RTS_OK));
737 printk(KERN_NOTICE "FCS error\t%d\n",
738 ath5k_hw_reg_read(ah, AR5K_FCS_FAIL));
739 737
740 /* no clear */ 738 /* no clear */
741 printk(KERN_NOTICE "tx\t%d\n", 739 pr_notice("tx\t%d\n", ath5k_hw_reg_read(ah, AR5K_PROFCNT_TX));
742 ath5k_hw_reg_read(ah, AR5K_PROFCNT_TX)); 740 pr_notice("rx\t%d\n", ath5k_hw_reg_read(ah, AR5K_PROFCNT_RX));
743 printk(KERN_NOTICE "rx\t%d\n", 741 pr_notice("busy\t%d\n", ath5k_hw_reg_read(ah, AR5K_PROFCNT_RXCLR));
744 ath5k_hw_reg_read(ah, AR5K_PROFCNT_RX)); 742 pr_notice("cycles\t%d\n", ath5k_hw_reg_read(ah, AR5K_PROFCNT_CYCLE));
745 printk(KERN_NOTICE "busy\t%d\n", 743
746 ath5k_hw_reg_read(ah, AR5K_PROFCNT_RXCLR)); 744 pr_notice("AR5K_PHYERR_CNT1\t%d\n",
747 printk(KERN_NOTICE "cycles\t%d\n", 745 ath5k_hw_reg_read(ah, AR5K_PHYERR_CNT1));
748 ath5k_hw_reg_read(ah, AR5K_PROFCNT_CYCLE)); 746 pr_notice("AR5K_PHYERR_CNT2\t%d\n",
749 747 ath5k_hw_reg_read(ah, AR5K_PHYERR_CNT2));
750 printk(KERN_NOTICE "AR5K_PHYERR_CNT1\t%d\n", 748 pr_notice("AR5K_OFDM_FIL_CNT\t%d\n",
751 ath5k_hw_reg_read(ah, AR5K_PHYERR_CNT1)); 749 ath5k_hw_reg_read(ah, AR5K_OFDM_FIL_CNT));
752 printk(KERN_NOTICE "AR5K_PHYERR_CNT2\t%d\n", 750 pr_notice("AR5K_CCK_FIL_CNT\t%d\n",
753 ath5k_hw_reg_read(ah, AR5K_PHYERR_CNT2)); 751 ath5k_hw_reg_read(ah, AR5K_CCK_FIL_CNT));
754 printk(KERN_NOTICE "AR5K_OFDM_FIL_CNT\t%d\n",
755 ath5k_hw_reg_read(ah, AR5K_OFDM_FIL_CNT));
756 printk(KERN_NOTICE "AR5K_CCK_FIL_CNT\t%d\n",
757 ath5k_hw_reg_read(ah, AR5K_CCK_FIL_CNT));
758} 752}
759 753
760#endif 754#endif
diff --git a/drivers/net/wireless/ath/ath5k/ath5k.h b/drivers/net/wireless/ath/ath5k/ath5k.h
index 8d434b8f5855..55ef93dd7438 100644
--- a/drivers/net/wireless/ath/ath5k/ath5k.h
+++ b/drivers/net/wireless/ath/ath5k/ath5k.h
@@ -76,26 +76,29 @@
76 GENERIC DRIVER DEFINITIONS 76 GENERIC DRIVER DEFINITIONS
77\****************************/ 77\****************************/
78 78
79#define ATH5K_PRINTF(fmt, ...) \ 79#define ATH5K_PRINTF(fmt, ...) \
80 printk(KERN_WARNING "%s: " fmt, __func__, ##__VA_ARGS__) 80 pr_warn("%s: " fmt, __func__, ##__VA_ARGS__)
81 81
82#define ATH5K_PRINTK(_sc, _level, _fmt, ...) \ 82void __printf(3, 4)
83 printk(_level "ath5k %s: " _fmt, \ 83_ath5k_printk(const struct ath5k_hw *ah, const char *level,
84 ((_sc) && (_sc)->hw) ? wiphy_name((_sc)->hw->wiphy) : "", \ 84 const char *fmt, ...);
85 ##__VA_ARGS__)
86 85
87#define ATH5K_PRINTK_LIMIT(_sc, _level, _fmt, ...) do { \ 86#define ATH5K_PRINTK(_sc, _level, _fmt, ...) \
88 if (net_ratelimit()) \ 87 _ath5k_printk(_sc, _level, _fmt, ##__VA_ARGS__)
89 ATH5K_PRINTK(_sc, _level, _fmt, ##__VA_ARGS__); \
90 } while (0)
91 88
92#define ATH5K_INFO(_sc, _fmt, ...) \ 89#define ATH5K_PRINTK_LIMIT(_sc, _level, _fmt, ...) \
90do { \
91 if (net_ratelimit()) \
92 ATH5K_PRINTK(_sc, _level, _fmt, ##__VA_ARGS__); \
93} while (0)
94
95#define ATH5K_INFO(_sc, _fmt, ...) \
93 ATH5K_PRINTK(_sc, KERN_INFO, _fmt, ##__VA_ARGS__) 96 ATH5K_PRINTK(_sc, KERN_INFO, _fmt, ##__VA_ARGS__)
94 97
95#define ATH5K_WARN(_sc, _fmt, ...) \ 98#define ATH5K_WARN(_sc, _fmt, ...) \
96 ATH5K_PRINTK_LIMIT(_sc, KERN_WARNING, _fmt, ##__VA_ARGS__) 99 ATH5K_PRINTK_LIMIT(_sc, KERN_WARNING, _fmt, ##__VA_ARGS__)
97 100
98#define ATH5K_ERR(_sc, _fmt, ...) \ 101#define ATH5K_ERR(_sc, _fmt, ...) \
99 ATH5K_PRINTK_LIMIT(_sc, KERN_ERR, _fmt, ##__VA_ARGS__) 102 ATH5K_PRINTK_LIMIT(_sc, KERN_ERR, _fmt, ##__VA_ARGS__)
100 103
101/* 104/*
diff --git a/drivers/net/wireless/ath/ath5k/attach.c b/drivers/net/wireless/ath/ath5k/attach.c
index d7114c75fe9b..7106547a14dd 100644
--- a/drivers/net/wireless/ath/ath5k/attach.c
+++ b/drivers/net/wireless/ath/ath5k/attach.c
@@ -20,6 +20,8 @@
20* Attach/Detach Functions and helpers * 20* Attach/Detach Functions and helpers *
21\*************************************/ 21\*************************************/
22 22
23#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
24
23#include <linux/pci.h> 25#include <linux/pci.h>
24#include <linux/slab.h> 26#include <linux/slab.h>
25#include "ath5k.h" 27#include "ath5k.h"
diff --git a/drivers/net/wireless/ath/ath5k/base.c b/drivers/net/wireless/ath/ath5k/base.c
index 0e643b016b32..3007bba12d94 100644
--- a/drivers/net/wireless/ath/ath5k/base.c
+++ b/drivers/net/wireless/ath/ath5k/base.c
@@ -40,6 +40,8 @@
40 * 40 *
41 */ 41 */
42 42
43#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
44
43#include <linux/module.h> 45#include <linux/module.h>
44#include <linux/delay.h> 46#include <linux/delay.h>
45#include <linux/dma-mapping.h> 47#include <linux/dma-mapping.h>
@@ -3038,3 +3040,23 @@ ath5k_set_beacon_filter(struct ieee80211_hw *hw, bool enable)
3038 ath5k_hw_set_rx_filter(ah, rfilt); 3040 ath5k_hw_set_rx_filter(ah, rfilt);
3039 ah->filter_flags = rfilt; 3041 ah->filter_flags = rfilt;
3040} 3042}
3043
3044void _ath5k_printk(const struct ath5k_hw *ah, const char *level,
3045 const char *fmt, ...)
3046{
3047 struct va_format vaf;
3048 va_list args;
3049
3050 va_start(args, fmt);
3051
3052 vaf.fmt = fmt;
3053 vaf.va = &args;
3054
3055 if (ah && ah->hw)
3056 printk("%s" pr_fmt("%s: %pV"),
3057 level, wiphy_name(ah->hw->wiphy), &vaf);
3058 else
3059 printk("%s" pr_fmt("%pV"), level, &vaf);
3060
3061 va_end(args);
3062}
diff --git a/drivers/net/wireless/ath/ath5k/debug.c b/drivers/net/wireless/ath/ath5k/debug.c
index e5e8f45d86ac..9d00dab666a8 100644
--- a/drivers/net/wireless/ath/ath5k/debug.c
+++ b/drivers/net/wireless/ath/ath5k/debug.c
@@ -57,6 +57,9 @@
57 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 57 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
58 * THE POSSIBILITY OF SUCH DAMAGES. 58 * THE POSSIBILITY OF SUCH DAMAGES.
59 */ 59 */
60
61#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
62
60#include <linux/export.h> 63#include <linux/export.h>
61#include <linux/moduleparam.h> 64#include <linux/moduleparam.h>
62 65
@@ -247,10 +250,10 @@ static ssize_t write_file_beacon(struct file *file,
247 250
248 if (strncmp(buf, "disable", 7) == 0) { 251 if (strncmp(buf, "disable", 7) == 0) {
249 AR5K_REG_DISABLE_BITS(ah, AR5K_BEACON, AR5K_BEACON_ENABLE); 252 AR5K_REG_DISABLE_BITS(ah, AR5K_BEACON, AR5K_BEACON_ENABLE);
250 printk(KERN_INFO "debugfs disable beacons\n"); 253 pr_info("debugfs disable beacons\n");
251 } else if (strncmp(buf, "enable", 6) == 0) { 254 } else if (strncmp(buf, "enable", 6) == 0) {
252 AR5K_REG_ENABLE_BITS(ah, AR5K_BEACON, AR5K_BEACON_ENABLE); 255 AR5K_REG_ENABLE_BITS(ah, AR5K_BEACON, AR5K_BEACON_ENABLE);
253 printk(KERN_INFO "debugfs enable beacons\n"); 256 pr_info("debugfs enable beacons\n");
254 } 257 }
255 return count; 258 return count;
256} 259}
@@ -450,19 +453,19 @@ static ssize_t write_file_antenna(struct file *file,
450 453
451 if (strncmp(buf, "diversity", 9) == 0) { 454 if (strncmp(buf, "diversity", 9) == 0) {
452 ath5k_hw_set_antenna_mode(ah, AR5K_ANTMODE_DEFAULT); 455 ath5k_hw_set_antenna_mode(ah, AR5K_ANTMODE_DEFAULT);
453 printk(KERN_INFO "ath5k debug: enable diversity\n"); 456 pr_info("debug: enable diversity\n");
454 } else if (strncmp(buf, "fixed-a", 7) == 0) { 457 } else if (strncmp(buf, "fixed-a", 7) == 0) {
455 ath5k_hw_set_antenna_mode(ah, AR5K_ANTMODE_FIXED_A); 458 ath5k_hw_set_antenna_mode(ah, AR5K_ANTMODE_FIXED_A);
456 printk(KERN_INFO "ath5k debugfs: fixed antenna A\n"); 459 pr_info("debug: fixed antenna A\n");
457 } else if (strncmp(buf, "fixed-b", 7) == 0) { 460 } else if (strncmp(buf, "fixed-b", 7) == 0) {
458 ath5k_hw_set_antenna_mode(ah, AR5K_ANTMODE_FIXED_B); 461 ath5k_hw_set_antenna_mode(ah, AR5K_ANTMODE_FIXED_B);
459 printk(KERN_INFO "ath5k debug: fixed antenna B\n"); 462 pr_info("debug: fixed antenna B\n");
460 } else if (strncmp(buf, "clear", 5) == 0) { 463 } else if (strncmp(buf, "clear", 5) == 0) {
461 for (i = 0; i < ARRAY_SIZE(ah->stats.antenna_rx); i++) { 464 for (i = 0; i < ARRAY_SIZE(ah->stats.antenna_rx); i++) {
462 ah->stats.antenna_rx[i] = 0; 465 ah->stats.antenna_rx[i] = 0;
463 ah->stats.antenna_tx[i] = 0; 466 ah->stats.antenna_tx[i] = 0;
464 } 467 }
465 printk(KERN_INFO "ath5k debug: cleared antenna stats\n"); 468 pr_info("debug: cleared antenna stats\n");
466 } 469 }
467 return count; 470 return count;
468} 471}
@@ -632,7 +635,7 @@ static ssize_t write_file_frameerrors(struct file *file,
632 st->txerr_fifo = 0; 635 st->txerr_fifo = 0;
633 st->txerr_filt = 0; 636 st->txerr_filt = 0;
634 st->tx_all_count = 0; 637 st->tx_all_count = 0;
635 printk(KERN_INFO "ath5k debug: cleared frameerrors stats\n"); 638 pr_info("debug: cleared frameerrors stats\n");
636 } 639 }
637 return count; 640 return count;
638} 641}
diff --git a/drivers/net/wireless/ath/ath5k/desc.c b/drivers/net/wireless/ath/ath5k/desc.c
index f8bfa3ac2af0..bd8d4392d68b 100644
--- a/drivers/net/wireless/ath/ath5k/desc.c
+++ b/drivers/net/wireless/ath/ath5k/desc.c
@@ -21,6 +21,8 @@
21 Hardware Descriptor Functions 21 Hardware Descriptor Functions
22\******************************/ 22\******************************/
23 23
24#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
25
24#include "ath5k.h" 26#include "ath5k.h"
25#include "reg.h" 27#include "reg.h"
26#include "debug.h" 28#include "debug.h"
@@ -441,10 +443,8 @@ ath5k_hw_proc_2word_tx_status(struct ath5k_hw *ah,
441 struct ath5k_desc *desc, 443 struct ath5k_desc *desc,
442 struct ath5k_tx_status *ts) 444 struct ath5k_tx_status *ts)
443{ 445{
444 struct ath5k_hw_2w_tx_ctl *tx_ctl;
445 struct ath5k_hw_tx_status *tx_status; 446 struct ath5k_hw_tx_status *tx_status;
446 447
447 tx_ctl = &desc->ud.ds_tx5210.tx_ctl;
448 tx_status = &desc->ud.ds_tx5210.tx_stat; 448 tx_status = &desc->ud.ds_tx5210.tx_stat;
449 449
450 /* No frame has been send or error */ 450 /* No frame has been send or error */
@@ -495,11 +495,9 @@ ath5k_hw_proc_4word_tx_status(struct ath5k_hw *ah,
495 struct ath5k_desc *desc, 495 struct ath5k_desc *desc,
496 struct ath5k_tx_status *ts) 496 struct ath5k_tx_status *ts)
497{ 497{
498 struct ath5k_hw_4w_tx_ctl *tx_ctl;
499 struct ath5k_hw_tx_status *tx_status; 498 struct ath5k_hw_tx_status *tx_status;
500 u32 txstat0, txstat1; 499 u32 txstat0, txstat1;
501 500
502 tx_ctl = &desc->ud.ds_tx5212.tx_ctl;
503 tx_status = &desc->ud.ds_tx5212.tx_stat; 501 tx_status = &desc->ud.ds_tx5212.tx_stat;
504 502
505 txstat1 = ACCESS_ONCE(tx_status->tx_status_1); 503 txstat1 = ACCESS_ONCE(tx_status->tx_status_1);
diff --git a/drivers/net/wireless/ath/ath5k/dma.c b/drivers/net/wireless/ath/ath5k/dma.c
index 5cc9aa814697..ce86f158423b 100644
--- a/drivers/net/wireless/ath/ath5k/dma.c
+++ b/drivers/net/wireless/ath/ath5k/dma.c
@@ -29,6 +29,8 @@
29 * status registers (ISR). 29 * status registers (ISR).
30 */ 30 */
31 31
32#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
33
32#include "ath5k.h" 34#include "ath5k.h"
33#include "reg.h" 35#include "reg.h"
34#include "debug.h" 36#include "debug.h"
diff --git a/drivers/net/wireless/ath/ath5k/eeprom.c b/drivers/net/wireless/ath/ath5k/eeprom.c
index cd708c15b774..4026c906cc7b 100644
--- a/drivers/net/wireless/ath/ath5k/eeprom.c
+++ b/drivers/net/wireless/ath/ath5k/eeprom.c
@@ -21,6 +21,8 @@
21* EEPROM access functions and helpers * 21* EEPROM access functions and helpers *
22\*************************************/ 22\*************************************/
23 23
24#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
25
24#include <linux/slab.h> 26#include <linux/slab.h>
25 27
26#include "ath5k.h" 28#include "ath5k.h"
diff --git a/drivers/net/wireless/ath/ath5k/initvals.c b/drivers/net/wireless/ath/ath5k/initvals.c
index a1ea78e05b47..ee1c2fa8b591 100644
--- a/drivers/net/wireless/ath/ath5k/initvals.c
+++ b/drivers/net/wireless/ath/ath5k/initvals.c
@@ -19,6 +19,8 @@
19 * 19 *
20 */ 20 */
21 21
22#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
23
22#include "ath5k.h" 24#include "ath5k.h"
23#include "reg.h" 25#include "reg.h"
24#include "debug.h" 26#include "debug.h"
@@ -1574,8 +1576,7 @@ ath5k_hw_write_initvals(struct ath5k_hw *ah, u8 mode, bool skip_pcu)
1574 1576
1575 /* AR5K_MODE_11B */ 1577 /* AR5K_MODE_11B */
1576 if (mode > 2) { 1578 if (mode > 2) {
1577 ATH5K_ERR(ah, 1579 ATH5K_ERR(ah, "unsupported channel mode: %d\n", mode);
1578 "unsupported channel mode: %d\n", mode);
1579 return -EINVAL; 1580 return -EINVAL;
1580 } 1581 }
1581 1582
diff --git a/drivers/net/wireless/ath/ath5k/led.c b/drivers/net/wireless/ath/ath5k/led.c
index c1151c723711..b9f708a45f4e 100644
--- a/drivers/net/wireless/ath/ath5k/led.c
+++ b/drivers/net/wireless/ath/ath5k/led.c
@@ -39,6 +39,8 @@
39 * 39 *
40 */ 40 */
41 41
42#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
43
42#include <linux/pci.h> 44#include <linux/pci.h>
43#include "ath5k.h" 45#include "ath5k.h"
44 46
diff --git a/drivers/net/wireless/ath/ath5k/mac80211-ops.c b/drivers/net/wireless/ath/ath5k/mac80211-ops.c
index 5c5329955414..22b80af0f47c 100644
--- a/drivers/net/wireless/ath/ath5k/mac80211-ops.c
+++ b/drivers/net/wireless/ath/ath5k/mac80211-ops.c
@@ -41,6 +41,8 @@
41 * 41 *
42 */ 42 */
43 43
44#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
45
44#include <net/mac80211.h> 46#include <net/mac80211.h>
45#include <asm/unaligned.h> 47#include <asm/unaligned.h>
46 48
diff --git a/drivers/net/wireless/ath/ath5k/pci.c b/drivers/net/wireless/ath/ath5k/pci.c
index 849fa060ebc4..53424e8e6d82 100644
--- a/drivers/net/wireless/ath/ath5k/pci.c
+++ b/drivers/net/wireless/ath/ath5k/pci.c
@@ -14,6 +14,8 @@
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15 */ 15 */
16 16
17#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
18
17#include <linux/nl80211.h> 19#include <linux/nl80211.h>
18#include <linux/pci.h> 20#include <linux/pci.h>
19#include <linux/pci-aspm.h> 21#include <linux/pci-aspm.h>
@@ -347,7 +349,7 @@ init_ath5k_pci(void)
347 349
348 ret = pci_register_driver(&ath5k_pci_driver); 350 ret = pci_register_driver(&ath5k_pci_driver);
349 if (ret) { 351 if (ret) {
350 printk(KERN_ERR "ath5k_pci: can't register pci driver\n"); 352 pr_err("pci: can't register pci driver\n");
351 return ret; 353 return ret;
352 } 354 }
353 355
diff --git a/drivers/net/wireless/ath/ath5k/phy.c b/drivers/net/wireless/ath/ath5k/phy.c
index 3a2845489a1b..8b71a2d947e0 100644
--- a/drivers/net/wireless/ath/ath5k/phy.c
+++ b/drivers/net/wireless/ath/ath5k/phy.c
@@ -22,6 +22,8 @@
22* PHY related functions * 22* PHY related functions *
23\***********************/ 23\***********************/
24 24
25#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
26
25#include <linux/delay.h> 27#include <linux/delay.h>
26#include <linux/slab.h> 28#include <linux/slab.h>
27#include <asm/unaligned.h> 29#include <asm/unaligned.h>
diff --git a/drivers/net/wireless/ath/ath5k/qcu.c b/drivers/net/wireless/ath/ath5k/qcu.c
index 30b50f934172..a6de200538c3 100644
--- a/drivers/net/wireless/ath/ath5k/qcu.c
+++ b/drivers/net/wireless/ath/ath5k/qcu.c
@@ -20,6 +20,8 @@
20Queue Control Unit, DCF Control Unit Functions 20Queue Control Unit, DCF Control Unit Functions
21\********************************************/ 21\********************************************/
22 22
23#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
24
23#include "ath5k.h" 25#include "ath5k.h"
24#include "reg.h" 26#include "reg.h"
25#include "debug.h" 27#include "debug.h"
diff --git a/drivers/net/wireless/ath/ath5k/reset.c b/drivers/net/wireless/ath/ath5k/reset.c
index 200f165c0c6d..0c2dd4771c36 100644
--- a/drivers/net/wireless/ath/ath5k/reset.c
+++ b/drivers/net/wireless/ath/ath5k/reset.c
@@ -23,6 +23,8 @@
23 Reset function and helpers 23 Reset function and helpers
24\****************************/ 24\****************************/
25 25
26#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
27
26#include <asm/unaligned.h> 28#include <asm/unaligned.h>
27 29
28#include <linux/pci.h> /* To determine if a card is pci-e */ 30#include <linux/pci.h> /* To determine if a card is pci-e */
diff --git a/drivers/net/wireless/ath/ath5k/sysfs.c b/drivers/net/wireless/ath/ath5k/sysfs.c
index 9364da7bd131..04cf0ca72610 100644
--- a/drivers/net/wireless/ath/ath5k/sysfs.c
+++ b/drivers/net/wireless/ath/ath5k/sysfs.c
@@ -1,3 +1,5 @@
1#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
2
1#include <linux/device.h> 3#include <linux/device.h>
2#include <linux/pci.h> 4#include <linux/pci.h>
3 5