]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[ath9k] Fix compilation on older gcc versions
authorMichael Brown <mcb30@ipxe.org>
Fri, 9 Mar 2012 17:08:53 +0000 (17:08 +0000)
committerMichael Brown <mcb30@ipxe.org>
Fri, 9 Mar 2012 17:09:26 +0000 (17:09 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/ath/ath9k/ath9k_mac.c
src/drivers/net/ath/ath9k/mac.h

index fbb3c334e062dfcda144993f9cc39abf704f4880..c2f6d630afb80e93a3e2af40e0ecc50c9e41aadc 100644 (file)
@@ -638,7 +638,7 @@ void ath9k_hw_enable_interrupts(struct ath_hw *ah)
                REG_READ(ah, AR_IMR), REG_READ(ah, AR_IER));
 }
 
-void ath9k_hw_set_interrupts(struct ath_hw *ah, enum ath9k_int ints)
+void ath9k_hw_set_interrupts(struct ath_hw *ah, unsigned int ints)
 {
        enum ath9k_int omask = ah->imask;
        u32 mask, mask2;
index c11fe4a5f6830bf55402d6e2a1f7707c13bb8164..5899230e03b158afa3154e731dbefe3e10e4044b 100644 (file)
@@ -668,7 +668,6 @@ enum ath9k_key_type {
 
 struct ath_hw;
 struct ath9k_channel;
-enum ath9k_int;
 
 u32 ath9k_hw_gettxbuf(struct ath_hw *ah, u32 q);
 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);
 
 /* Interrupt Handling */
 int ath9k_hw_intrpend(struct ath_hw *ah);
-void ath9k_hw_set_interrupts(struct ath_hw *ah, enum ath9k_int ints);
+void ath9k_hw_set_interrupts(struct ath_hw *ah, unsigned int ints);
 void ath9k_hw_enable_interrupts(struct ath_hw *ah);
 void ath9k_hw_disable_interrupts(struct ath_hw *ah);