]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: Initialize endpoint library before controllers
authorAlan Douglas <adouglas@cadence.com>
Fri, 22 Jun 2018 16:17:17 +0000 (17:17 +0100)
committerBjorn Helgaas <helgaas@kernel.org>
Tue, 26 Jun 2018 20:37:37 +0000 (15:37 -0500)
commit2010e1bc1d24f18e3992c1a8c2b672daee9f965a
tree8544a73fd1e434872ff4fffd3fe8e3bbc0172916
parent1b2c7f6b5a94f8cf4c8b58928e53ad85950051f9
PCI: Initialize endpoint library before controllers

The endpoint library must be initialized before its users, which are in
drivers/pci/controllers.  The endpoint initialization currently depends on
link order.

This corrects a kernel crash when loading the Cadence EP driver, since it
calls devm_pci_epc_create() and this is only valid once the endpoint
library has been initialized.

Fixes: d9c0a5019f2a ("PCI: Collect all native drivers under drivers/pci/controller/")
Signed-off-by: Alan Douglas <adouglas@cadence.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/Makefile