PCI: dwc: designware: Parse "num-lanes" property in dw_pcie_setup_rc()
authorKishon Vijay Abraham I <kishon@ti.com>
Wed, 15 Feb 2017 13:18:15 +0000 (18:48 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 21 Feb 2017 21:00:26 +0000 (15:00 -0600)
commit5f334db665173facf2213854408bb5fa2445d0b3
tree0ff13cf5b8637d984b4945712daf1f2d12b31bc7
parent442ec4c04d1235f8c664a74004dae54a7a574d18
PCI: dwc: designware: Parse "num-lanes" property in dw_pcie_setup_rc()

The "num-lanes" DT property is parsed in dw_pcie_host_init(). However
num-lanes is applicable to both root complex mode and endpoint mode. As a
first step, move the parsing of this property outside dw_pcie_host_init().
This is in preparation for splitting pcie-designware.c to pcie-designware.c
and pcie-designware-host.c

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