From: Hauke Mehrtens Date: Tue, 21 Dec 2010 01:01:55 +0000 (+0100) Subject: ath9k: Use pci_is_pcie() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e40b5faabc34f61fdf17b40d2e31837461ddc467;p=linux-beck.git ath9k: Use pci_is_pcie() Use function pci_is_pcie() instead of accessing struct member directly. CC: Luis R. Rodriguez Signed-off-by: Hauke Mehrtens Signed-off-by: John W. Linville --- 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) 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);