PCI: Remove unused "is_pcie" from pci_dev structure
authorYijing Wang <wangyijing@huawei.com>
Tue, 3 Sep 2013 02:02:09 +0000 (10:02 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 25 Sep 2013 21:43:44 +0000 (15:43 -0600)
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>
drivers/pci/probe.c
include/linux/pci.h

index 7ef0f868b3e07bf48941075e269ef3976d3efcf1..2372babe2fc53aad652697f079ad273f89439a48 100644 (file)
@@ -984,7 +984,6 @@ void set_pcie_port_type(struct pci_dev *pdev)
        pos = pci_find_capability(pdev, PCI_CAP_ID_EXP);
        if (!pos)
                return;
-       pdev->is_pcie = 1;
        pdev->pcie_cap = pos;
        pci_read_config_word(pdev, pos + PCI_EXP_FLAGS, &reg16);
        pdev->pcie_flags_reg = reg16;
index ee0f3b60af222770b9b2687379d2283e3718f4d2..197e2d21f2cb732ebbb7870dbbe45898a7285c50 100644 (file)
@@ -330,8 +330,6 @@ struct pci_dev {
        unsigned int    msix_enabled:1;
        unsigned int    ari_enabled:1;  /* ARI forwarding */
        unsigned int    is_managed:1;
-       unsigned int    is_pcie:1;      /* Obsolete. Will be removed.
-                                          Use pci_is_pcie() instead */
        unsigned int    needs_freset:1; /* Dev requires fundamental reset */
        unsigned int    state_saved:1;
        unsigned int    is_physfn:1;