Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 14a5ddf9 authored by Tony Truong's avatar Tony Truong
Browse files

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: default avatarTony Truong <truong@codeaurora.org>
parent 979ef22a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -6457,7 +6457,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);
@@ -6508,6 +6507,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 &