aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath5k/attach.c
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2010-12-20 20:01:54 -0500
committerJohn W. Linville <linville@tuxdriver.com>2010-12-22 15:43:26 -0500
commite98b06b09be0fc459806aa4d2c301cfaf268c570 (patch)
treeed3a19111d8f10dd74e6f97d4eb74b003bfb5d6f /drivers/net/wireless/ath/ath5k/attach.c
parent2cdb9a42f3b4c97088ea0768dbee55ee8863f233 (diff)
ath5k: Use pci_is_pcie()
Use function pci_is_pcie() instead of accessing struct member directly. CC: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath5k/attach.c')
-rw-r--r--drivers/net/wireless/ath/ath5k/attach.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath5k/attach.c b/drivers/net/wireless/ath/ath5k/attach.c
index 9dbc1fa81795..cdac5cff0177 100644
--- a/drivers/net/wireless/ath/ath5k/attach.c
+++ b/drivers/net/wireless/ath/ath5k/attach.c
@@ -276,7 +276,7 @@ int ath5k_hw_init(struct ath5k_softc *sc)
276 /* 276 /*
277 * Write PCI-E power save settings 277 * Write PCI-E power save settings
278 */ 278 */
279 if ((ah->ah_version == AR5K_AR5212) && pdev && (pdev->is_pcie)) { 279 if ((ah->ah_version == AR5K_AR5212) && pdev && (pci_is_pcie(pdev))) {
280 ath5k_hw_reg_write(ah, 0x9248fc00, AR5K_PCIE_SERDES); 280 ath5k_hw_reg_write(ah, 0x9248fc00, AR5K_PCIE_SERDES);
281 ath5k_hw_reg_write(ah, 0x24924924, AR5K_PCIE_SERDES); 281 ath5k_hw_reg_write(ah, 0x24924924, AR5K_PCIE_SERDES);
282 282