diff options
author | Yijing Wang <wangyijing@huawei.com> | 2013-09-02 22:02:09 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2013-09-25 17:43:44 -0400 |
commit | 115e3bc5e23e7ec3c85a2014bfa96c0ddd036083 (patch) | |
tree | b88300607f7283f8a1f31b70586eec7a7612c21f | |
parent | a37bee7956ab34785815aafbe9f920c2cfd02b97 (diff) |
PCI: Remove unused "is_pcie" from pci_dev structure
No one uses "is_pcie" now; remove this obsolete member.
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
-rw-r--r-- | drivers/pci/probe.c | 1 | ||||
-rw-r--r-- | include/linux/pci.h | 2 |
2 files changed, 0 insertions, 3 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c index 7ef0f868b3e0..2372babe2fc5 100644 --- a/drivers/pci/probe.c +++ b/drivers/pci/probe.c | |||
@@ -984,7 +984,6 @@ void set_pcie_port_type(struct pci_dev *pdev) | |||
984 | pos = pci_find_capability(pdev, PCI_CAP_ID_EXP); | 984 | pos = pci_find_capability(pdev, PCI_CAP_ID_EXP); |
985 | if (!pos) | 985 | if (!pos) |
986 | return; | 986 | return; |
987 | pdev->is_pcie = 1; | ||
988 | pdev->pcie_cap = pos; | 987 | pdev->pcie_cap = pos; |
989 | pci_read_config_word(pdev, pos + PCI_EXP_FLAGS, ®16); | 988 | pci_read_config_word(pdev, pos + PCI_EXP_FLAGS, ®16); |
990 | pdev->pcie_flags_reg = reg16; | 989 | pdev->pcie_flags_reg = reg16; |
diff --git a/include/linux/pci.h b/include/linux/pci.h index ee0f3b60af22..197e2d21f2cb 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -330,8 +330,6 @@ struct pci_dev { | |||
330 | unsigned int msix_enabled:1; | 330 | unsigned int msix_enabled:1; |
331 | unsigned int ari_enabled:1; /* ARI forwarding */ | 331 | unsigned int ari_enabled:1; /* ARI forwarding */ |
332 | unsigned int is_managed:1; | 332 | unsigned int is_managed:1; |
333 | unsigned int is_pcie:1; /* Obsolete. Will be removed. | ||
334 | Use pci_is_pcie() instead */ | ||
335 | unsigned int needs_freset:1; /* Dev requires fundamental reset */ | 333 | unsigned int needs_freset:1; /* Dev requires fundamental reset */ |
336 | unsigned int state_saved:1; | 334 | unsigned int state_saved:1; |
337 | unsigned int is_physfn:1; | 335 | unsigned int is_physfn:1; |