PCI: Unify pcie_find_root_port() and pci_find_pcie_root_port()
Previously we used pcie_find_root_port() to find a Root Port from a PCIe device and pci_find_pcie_root_port() to find a Root Port from a Conventional PCI device. Unify the two functions and use pcie_find_root_port() to find a Root Port from either a Conventional PCI device or a PCIe device. Then there is no need to distinguish the type of the device. Link: https://lore.kernel.org/r/1589019568-5216-1-git-send-email-yangyicong@hisilicon.com Signed-off-by:Yicong Yang <yangyicong@hisilicon.com> Signed-off-by:
Bjorn Helgaas <bhelgaas@google.com> Acked-by: Kalle Valo <kvalo@codeaurora.org> # wireless Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com> # thunderbolt
Showing
- drivers/pci/pci-acpi.c 1 addition, 1 deletiondrivers/pci/pci-acpi.c
- drivers/pci/pci.c 0 additions, 24 deletionsdrivers/pci/pci.c
- drivers/pci/probe.c 1 addition, 1 deletiondrivers/pci/probe.c
- drivers/pci/quirks.c 1 addition, 1 deletiondrivers/pci/quirks.c
- drivers/thunderbolt/switch.c 2 additions, 2 deletionsdrivers/thunderbolt/switch.c
- include/linux/pci.h 14 additions, 9 deletionsinclude/linux/pci.h
Loading
Please register or sign in to comment