PCI: OF: Allow of_pci_get_max_link_speed() to be used by PCI Endpoint drivers
authorKishon Vijay Abraham I <kishon@ti.com>
Mon, 25 Mar 2019 09:39:37 +0000 (15:09 +0530)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Mon, 15 Apr 2019 12:24:02 +0000 (13:24 +0100)
commit40e5d614a0cdbf50dc3caa7eb10bd838edcb3ba5
tree599f30eb86f635b222f836014a43bc4ed2a28a88
parentb22af42b3e57c3a49a4c4a54c7d8a1363af75e90
PCI: OF: Allow of_pci_get_max_link_speed() to be used by PCI Endpoint drivers

of_pci_get_max_link_speed() is built only if CONFIG_PCI is enabled.
Make of_pci_get_max_link_speed() to be also used by PCI Endpoint
controllers with just CONFIG_PCI_ENDPOINT enabled.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/Makefile
drivers/pci/of.c