Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 115e3bc5 authored by Yijing Wang's avatar Yijing Wang Committed by Bjorn Helgaas
Browse files

PCI: Remove unused "is_pcie" from pci_dev structure



No one uses "is_pcie" now; remove this obsolete member.

Signed-off-by: default avatarYijing Wang <wangyijing@huawei.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent a37bee79
Loading
Loading
Loading
Loading
+0 −1
Original line number Original line Diff line number Diff line
@@ -984,7 +984,6 @@ void set_pcie_port_type(struct pci_dev *pdev)
	pos = pci_find_capability(pdev, PCI_CAP_ID_EXP);
	pos = pci_find_capability(pdev, PCI_CAP_ID_EXP);
	if (!pos)
	if (!pos)
		return;
		return;
	pdev->is_pcie = 1;
	pdev->pcie_cap = pos;
	pdev->pcie_cap = pos;
	pci_read_config_word(pdev, pos + PCI_EXP_FLAGS, &reg16);
	pci_read_config_word(pdev, pos + PCI_EXP_FLAGS, &reg16);
	pdev->pcie_flags_reg = reg16;
	pdev->pcie_flags_reg = reg16;
+0 −2
Original line number Original line Diff line number Diff line
@@ -330,8 +330,6 @@ struct pci_dev {
	unsigned int	msix_enabled:1;
	unsigned int	msix_enabled:1;
	unsigned int	ari_enabled:1;	/* ARI forwarding */
	unsigned int	ari_enabled:1;	/* ARI forwarding */
	unsigned int	is_managed:1;
	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    needs_freset:1; /* Dev requires fundamental reset */
	unsigned int	state_saved:1;
	unsigned int	state_saved:1;
	unsigned int	is_physfn:1;
	unsigned int	is_physfn:1;