From 821a04092d4d65ed37b5855aafd4334ec2797fc9 Mon Sep 17 00:00:00 2001 From: Tony Truong Date: Thu, 20 Apr 2017 11:04:03 -0700 Subject: [PATCH] msm: pcie: move PCIe enumerate sysfs init PCIe enumerate sysfs initialization should be done after all other resources are setup. Change-Id: I33b43e39453eeee9ac9e22bd1a5463af9eb1fd05 Signed-off-by: Tony Truong --- drivers/pci/host/pci-msm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/pci/host/pci-msm.c b/drivers/pci/host/pci-msm.c index 243afbe44df3..8bb759d10074 100644 --- a/drivers/pci/host/pci-msm.c +++ b/drivers/pci/host/pci-msm.c @@ -6449,7 +6449,6 @@ static int msm_pcie_probe(struct platform_device *pdev) } dev_set_drvdata(&msm_pcie_dev[rc_idx].pdev->dev, &msm_pcie_dev[rc_idx]); - msm_pcie_sysfs_init(&msm_pcie_dev[rc_idx]); ret = msm_pcie_get_resources(&msm_pcie_dev[rc_idx], msm_pcie_dev[rc_idx].pdev); @@ -6500,6 +6499,8 @@ static int msm_pcie_probe(struct platform_device *pdev) goto decrease_rc_num; } + msm_pcie_sysfs_init(&msm_pcie_dev[rc_idx]); + msm_pcie_dev[rc_idx].drv_ready = true; if (msm_pcie_dev[rc_idx].boot_option & -- 2.11.0