PCI: designware: Look for configuration space in 'reg', not 'ranges'
authorKishon Vijay Abraham I <kishon@ti.com>
Thu, 17 Jul 2014 09:00:40 +0000 (14:30 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 22 Jul 2014 20:17:47 +0000 (14:17 -0600)
commit4dd964df36d0e548e1806ec2ec275b62d4dc46e8
tree43313b69940936402b2931c761e96231d12ffd7c
parent7171511eaec5bf23fb06078f59784a3a0626b38f
PCI: designware: Look for configuration space in 'reg', not 'ranges'

The configuration address space has so far been specified in *ranges*,
however it should be specified in *reg* making it a platform MEM resource.
Hence used 'platform_get_resource_*' API to get configuration address space
in the designware driver.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Mohit Kumar <mohit.kumar@st.com>
Acked-by: Jingoo Han <jg1.han@samsung.com>
Cc: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Cc: Marek Vasut <marex@denx.de>
Cc: Arnd Bergmann <arnd@arndb.de>
Documentation/devicetree/bindings/pci/designware-pcie.txt
drivers/pci/host/pcie-designware.c