diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2016-10-17 11:39:32 +0100 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2016-10-17 07:58:18 -0500 |
commit | 15480f3ab7a8b5333e170d7168ce8a1012cc735e (patch) | |
tree | fda0bde3ac2f21d1128a274893559823c41adfa8 /block | |
parent | dabe7ecc572447c6f8a052cc77e220998c7f9c38 (diff) |
PCI: layerscape: Fix drvdata usage before assignment
Commit fefe6733e516 ("PCI: layerscape: Move struct pcie_port setup
to probe function") changed the init ordering of the pcie structure,
but started to use the pcie->drvdata field before initializing it.
Mayhem follows.
Fix this by moving the drvdata assignment right before the first use.
Tested on LS2085a.
Fixes: efe6733e516 ("PCI: layerscape: Move struct pcie_port setup to probe function")
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions