mirror of
https://github.com/torvalds/linux.git
synced 2026-12-02 03:22:37 +00:00
PCI: imx6: Probe the PCIe in fs_initcall()
Probe the PCIe driver in fs_initcall() instead of module_init() to assure that pci_assign_unassigned_resources() will be called early. This function is called in dw_pcie_host_init(), which is in turn called from imx6_add_pcie_port(), which is called from imx6_pcie_probe(). If this is not called early, we will hit resource collisions since pcieport driver is then probed way too late. Signed-off-by: Marek Vasut <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Acked-by: Shawn Guo <[email protected]> Cc: Frank Li <[email protected]> Cc: Jingoo Han <[email protected]> Cc: Mohit KUMAR <[email protected]> Cc: Pratyush Anand <[email protected]> Cc: Richard Zhu <[email protected]> Cc: Sascha Hauer <[email protected]> Cc: Sean Cross <[email protected]> Cc: Siva Reddy Kallam <[email protected]> Cc: Srikanth T Shivanand <[email protected]> Cc: Tim Harvey <[email protected]> Cc: Troy Kisky <[email protected]> Cc: Yinghai Lu <[email protected]>
This commit is contained in:
committed by
Bjorn Helgaas
parent
8bcadbe172
commit
f216f57ffe
@@ -561,7 +561,7 @@ static int __init imx6_pcie_init(void)
|
||||
{
|
||||
return platform_driver_probe(&imx6_pcie_driver, imx6_pcie_probe);
|
||||
}
|
||||
module_init(imx6_pcie_init);
|
||||
fs_initcall(imx6_pcie_init);
|
||||
|
||||
MODULE_AUTHOR("Sean Cross <[email protected]>");
|
||||
MODULE_DESCRIPTION("Freescale i.MX6 PCIe host controller driver");
|
||||
|
||||
Reference in New Issue
Block a user