Browse Source

[ath9k] Fix compilation on older gcc versions

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 12 years ago
parent
commit
74b1e706a8
2 changed files with 2 additions and 3 deletions
  1. 1
    1
      src/drivers/net/ath/ath9k/ath9k_mac.c
  2. 1
    2
      src/drivers/net/ath/ath9k/mac.h

+ 1
- 1
src/drivers/net/ath/ath9k/ath9k_mac.c View File

@@ -638,7 +638,7 @@ void ath9k_hw_enable_interrupts(struct ath_hw *ah)
638 638
 		REG_READ(ah, AR_IMR), REG_READ(ah, AR_IER));
639 639
 }
640 640
 
641
-void ath9k_hw_set_interrupts(struct ath_hw *ah, enum ath9k_int ints)
641
+void ath9k_hw_set_interrupts(struct ath_hw *ah, unsigned int ints)
642 642
 {
643 643
 	enum ath9k_int omask = ah->imask;
644 644
 	u32 mask, mask2;

+ 1
- 2
src/drivers/net/ath/ath9k/mac.h View File

@@ -668,7 +668,6 @@ enum ath9k_key_type {
668 668
 
669 669
 struct ath_hw;
670 670
 struct ath9k_channel;
671
-enum ath9k_int;
672 671
 
673 672
 u32 ath9k_hw_gettxbuf(struct ath_hw *ah, u32 q);
674 673
 void ath9k_hw_puttxbuf(struct ath_hw *ah, u32 q, u32 txdp);
@@ -699,7 +698,7 @@ int ath9k_hw_stopdmarecv(struct ath_hw *ah, int *reset);
699 698
 
700 699
 /* Interrupt Handling */
701 700
 int ath9k_hw_intrpend(struct ath_hw *ah);
702
-void ath9k_hw_set_interrupts(struct ath_hw *ah, enum ath9k_int ints);
701
+void ath9k_hw_set_interrupts(struct ath_hw *ah, unsigned int ints);
703 702
 void ath9k_hw_enable_interrupts(struct ath_hw *ah);
704 703
 void ath9k_hw_disable_interrupts(struct ath_hw *ah);
705 704
 

Loading…
Cancel
Save