Skip to content

Commit b2ef39b

Browse files
YijingWangbjorn-helgaas
authored andcommitted
PCI: Remove unused field pcie_type from struct pci_dev
With introduction of pci_pcie_type(), pci_dev->pcie_type field becomes redundant, so remove it. Signed-off-by: Yijing Wang <wangyijing@huawei.com> Signed-off-by: Jiang Liu <jiang.liu@huawei.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
1 parent 62f87c0 commit b2ef39b

2 files changed

Lines changed: 0 additions & 2 deletions

File tree

‎drivers/pci/probe.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,6 @@ void set_pcie_port_type(struct pci_dev *pdev)
930930
pdev->pcie_cap = pos;
931931
pci_read_config_word(pdev, pos + PCI_EXP_FLAGS, &reg16);
932932
pdev->pcie_flags_reg = reg16;
933-
pdev->pcie_type = pci_pcie_type(pdev);
934933
pci_read_config_word(pdev, pos + PCI_EXP_DEVCAP, &reg16);
935934
pdev->pcie_mpss = reg16 & PCI_EXP_DEVCAP_PAYLOAD;
936935
}

‎include/linux/pci.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,6 @@ struct pci_dev {
254254
u8 revision; /* PCI revision, low byte of class word */
255255
u8 hdr_type; /* PCI header type (`multi' flag masked out) */
256256
u8 pcie_cap; /* PCI-E capability offset */
257-
u8 pcie_type:4; /* PCI-E device/port type */
258257
u8 pcie_mpss:3; /* PCI-E Max Payload Size Supported */
259258
u8 rom_base_reg; /* which config register controls the ROM */
260259
u8 pin; /* which interrupt pin this device uses */

0 commit comments

Comments
 (0)