aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>2010-02-08 22:21:27 -0500
committerJesse Barnes <jbarnes@virtuousgeek.org>2010-02-22 19:17:26 -0500
commit6d3be84aab461815978d970aa45f5bc9e52dd772 (patch)
treeb81755ad2a384c225c2b707591ef3df049b0653e
parent9958610552c0bd7558b41cb8addbd865587f142a (diff)
PCI: mark is_pcie obsolete
The "is_pcie" field in struct pci_dev is no longer needed because struct pci_dev has PCIe capability offset in "pcie_cap" field and (pcie_cap != 0) means the device is PCIe capable. This patch marks "is_pcie" fields obsolete. Current users of "is_pcie" field are: - drivers/ssb/scan.c - drivers/net/wireless/ath/ath9k/pci.c - drivers/net/wireless/ath/ath5k/attach.c - drivers/net/wireless/ath/ath5k/reset.c - drivers/acpi/hest.c - drivers/pci/pcie/pme/pcie_pme.c Will post patches for each to use pci_is_pcie() as a follow-up. Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
-rw-r--r--include/linux/pci.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index f0c056780a1f..578a0770961a 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -302,7 +302,8 @@ struct pci_dev {
302 unsigned int msix_enabled:1; 302 unsigned int msix_enabled:1;
303 unsigned int ari_enabled:1; /* ARI forwarding */ 303 unsigned int ari_enabled:1; /* ARI forwarding */
304 unsigned int is_managed:1; 304 unsigned int is_managed:1;
305 unsigned int is_pcie:1; 305 unsigned int is_pcie:1; /* Obsolete. Will be removed.
306 Use pci_is_pcie() instead */
306 unsigned int needs_freset:1; /* Dev requires fundamental reset */ 307 unsigned int needs_freset:1; /* Dev requires fundamental reset */
307 unsigned int state_saved:1; 308 unsigned int state_saved:1;
308 unsigned int is_physfn:1; 309 unsigned int is_physfn:1;