Skip to content

Commit

Permalink
ath9k: Use pci_is_pcie()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hauke Mehrtens authored and John W. Linville committed Dec 22, 2010
1 parent e98b06b commit e40b5fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/ath/ath9k/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e40b5fa

Please sign in to comment.