aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2010-12-20 20:01:55 -0500
committerJohn W. Linville <linville@tuxdriver.com>2010-12-22 15:43:27 -0500
commite40b5faabc34f61fdf17b40d2e31837461ddc467 (patch)
tree21f4e6b8b22d121752f867cd9468febb1c7c8ee0
parente98b06b09be0fc459806aa4d2c301cfaf268c570 (diff)
ath9k: 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>
-rw-r--r--drivers/net/wireless/ath/ath9k/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/pci.c b/drivers/net/wireless/ath/ath9k/pci.c
index 10563334bb09..545aa1c650cf 100644
--- a/drivers/net/wireless/ath/ath9k/pci.c
+++ b/drivers/net/wireless/ath/ath9k/pci.c
@@ -96,7 +96,7 @@ static void ath_pci_bt_coex_prep(struct ath_common *common)
96 struct pci_dev *pdev = to_pci_dev(sc->dev); 96 struct pci_dev *pdev = to_pci_dev(sc->dev);
97 u8 aspm; 97 u8 aspm;
98 98
99 if (!pdev->is_pcie) 99 if (!pci_is_pcie(pdev))
100 return; 100 return;
101 101
102 pci_read_config_byte(pdev, ATH_PCIE_CAP_LINK_CTRL, &aspm); 102 pci_read_config_byte(pdev, ATH_PCIE_CAP_LINK_CTRL, &aspm);