]> www.infradead.org Git - users/dwmw2/linux.git/commit
PCI: Drop duplicate pcie_get_speed_cap(), pcie_get_width_cap() declarations
authorBjorn Helgaas <bhelgaas@google.com>
Mon, 11 Nov 2024 20:21:33 +0000 (14:21 -0600)
committerBjorn Helgaas <bhelgaas@google.com>
Sat, 16 Nov 2024 16:09:30 +0000 (10:09 -0600)
commitba58eee1c57b2ad45c36f782861c18faef170a55
tree4208a89d2f6c01efbc0d83db960faa29a07ab044
parent838f12c3d551f8941295ed7085ad360c3d3ad665
PCI: Drop duplicate pcie_get_speed_cap(), pcie_get_width_cap() declarations

6cf57be0f78e ("PCI: Add pcie_get_speed_cap() to find max supported link
speed") and c70b65fb7f12 ("PCI: Add pcie_get_width_cap() to find max
supported link width") added declarations to drivers/pci/pci.h.

576c7218a154 ("PCI: Export pcie_get_speed_cap and pcie_get_width_cap")
subsequently added duplicates to include/linux/pci.h.

Remove the originals from drivers/pci/pci.h.  Both interfaces are used by
amdgpu, so they must be in include/linux/pci.h.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Krzysztof WilczyƄski <kw@linux.com>
drivers/pci/pci.h