PCI: dwc: designware: Get device pointer at the start of dw_pcie_host_init()
authorKishon Vijay Abraham I <kishon@ti.com>
Wed, 15 Feb 2017 13:18:13 +0000 (18:48 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 21 Feb 2017 21:00:26 +0000 (15:00 -0600)
commit40f67fb2c384fe12741aa35010d62bfe8c98286c
tree98adb5d1545cc7ed8bec8c3da1e0d18d69088384
parent19ce01cc8cbc314d73db9755715a8f6e8ad59a7f
PCI: dwc: designware: Get device pointer at the start of dw_pcie_host_init()

No functional change. Get device pointer at the beginning of
dw_pcie_host_init() instead of getting it all over dw_pcie_host_init().
This is in preparation for splitting struct pcie_port into host and core
structures (once split pcie_port will not have device pointer).

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/dwc/pcie-designware.c