aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath9k/pci.c
diff options
context:
space:
mode:
authorLuis R. Rodriguez <lrodriguez@atheros.com>2009-09-23 23:06:59 -0400
committerJohn W. Linville <linville@tuxdriver.com>2009-10-07 16:39:41 -0400
commit475a6e4d3907d6af412d081a9eab3b1e8a24afd1 (patch)
tree4e1101f67a5cfd85e8575beafafb487b504baa45 /drivers/net/wireless/ath/ath9k/pci.c
parentbdcf8ff3dd7e89ee4b3f303b6f7e5e04876f9d76 (diff)
ath9k: use common read/write ops on pci and debug code
PCI and debug code will not be shared between ath9k and ath9k_htc, so make that code use the common read/write ops. Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/pci.c')
-rw-r--r--drivers/net/wireless/ath/ath9k/pci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath9k/pci.c b/drivers/net/wireless/ath/ath9k/pci.c
index a1001ffdd389..b2a45ce62698 100644
--- a/drivers/net/wireless/ath/ath9k/pci.c
+++ b/drivers/net/wireless/ath/ath9k/pci.c
@@ -65,7 +65,7 @@ static bool ath_pci_eeprom_read(struct ath_common *common, u32 off, u16 *data)
65{ 65{
66 struct ath_hw *ah = (struct ath_hw *) common->ah; 66 struct ath_hw *ah = (struct ath_hw *) common->ah;
67 67
68 (void)REG_READ(ah, AR5416_EEPROM_OFFSET + (off << AR5416_EEPROM_S)); 68 common->ops->read(ah, AR5416_EEPROM_OFFSET + (off << AR5416_EEPROM_S));
69 69
70 if (!ath9k_hw_wait(ah, 70 if (!ath9k_hw_wait(ah,
71 AR_EEPROM_STATUS_DATA, 71 AR_EEPROM_STATUS_DATA,
@@ -75,7 +75,7 @@ static bool ath_pci_eeprom_read(struct ath_common *common, u32 off, u16 *data)
75 return false; 75 return false;
76 } 76 }
77 77
78 *data = MS(REG_READ(ah, AR_EEPROM_STATUS_DATA), 78 *data = MS(common->ops->read(ah, AR_EEPROM_STATUS_DATA),
79 AR_EEPROM_STATUS_DATA_VAL); 79 AR_EEPROM_STATUS_DATA_VAL);
80 80
81 return true; 81 return true;