mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
PCI: qcom: Fix pp->dev usage before assignment
Initialize pp->dev in qcom_pcie_probe() before calling get_resources(),
which uses it.
[bhelgaas: changelog]
Fixes: e6a087eeaf ("PCI: qcom: Remove redundant struct qcom_pcie.dev")
Signed-off-by: Srinivas Kandagatla <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
This commit is contained in:
parent
02a1b8f416
commit
ad110449e2
1 changed files with 1 additions and 1 deletions
|
|
@ -533,11 +533,11 @@ static int qcom_pcie_probe(struct platform_device *pdev)
|
|||
if (IS_ERR(pcie->phy))
|
||||
return PTR_ERR(pcie->phy);
|
||||
|
||||
pp->dev = dev;
|
||||
ret = pcie->ops->get_resources(pcie);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
pp->dev = dev;
|
||||
pp->root_bus_nr = -1;
|
||||
pp->ops = &qcom_pcie_dw_ops;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue