ath9k: Use pci_is_pcie()
authorHauke Mehrtens <hauke@hauke-m.de>
Tue, 21 Dec 2010 01:01:55 +0000 (02:01 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 22 Dec 2010 20:43:27 +0000 (15:43 -0500)
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>
drivers/net/wireless/ath/ath9k/pci.c

index 10563334bb0960cce0d9e0be0344746fd664120e..545aa1c650cf0993b05ac85ca4bb96ffc3940dfc 100644 (file)
@@ -96,7 +96,7 @@ static void ath_pci_bt_coex_prep(struct ath_common *common)
        struct pci_dev *pdev = to_pci_dev(sc->dev);
        u8 aspm;
 
-       if (!pdev->is_pcie)
+       if (!pci_is_pcie(pdev))
                return;
 
        pci_read_config_byte(pdev, ATH_PCIE_CAP_LINK_CTRL, &aspm);