summaryrefslogtreecommitdiffstats
path: root/drivers/pci/host/pcie-spear13xx.c
diff options
context:
space:
mode:
authorPratyush Anand <pratyush.anand@st.com>2014-09-03 10:50:49 +0530
committerBjorn Helgaas <bhelgaas@google.com>2014-09-22 14:19:30 -0600
commit65aaae245a2842e3ed9d12f27aeb42fa215dfc2c (patch)
tree3cbbc777711c8cced032639cc9d37e13a7deee8c /drivers/pci/host/pcie-spear13xx.c
parent52addcf9d6669fa439387610bc65c92fa0980cef (diff)
downloadblackbird-op-linux-65aaae245a2842e3ed9d12f27aeb42fa215dfc2c.tar.gz
blackbird-op-linux-65aaae245a2842e3ed9d12f27aeb42fa215dfc2c.zip
PCI: spear: Pass config resource through reg property
PCIe configuration space should be passed through reg property, rather than through ranges property. This patch does the correction for SPEAr13XX SOCs. Signed-off-by: Pratyush Anand <pratyush.anand@st.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Mohit Kumar <mohit.kumar@st.com>
Diffstat (limited to 'drivers/pci/host/pcie-spear13xx.c')
-rw-r--r--drivers/pci/host/pcie-spear13xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/host/pcie-spear13xx.c b/drivers/pci/host/pcie-spear13xx.c
index 6dea9e43a75c..85f594e1708f 100644
--- a/drivers/pci/host/pcie-spear13xx.c
+++ b/drivers/pci/host/pcie-spear13xx.c
@@ -340,7 +340,7 @@ static int __init spear13xx_pcie_probe(struct platform_device *pdev)
pp->dev = dev;
- dbi_base = platform_get_resource(pdev, IORESOURCE_MEM, 0);
+ dbi_base = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dbi");
pp->dbi_base = devm_ioremap_resource(dev, dbi_base);
if (IS_ERR(pp->dbi_base)) {
dev_err(dev, "couldn't remap dbi base %p\n", dbi_base);
OpenPOWER on IntegriCloud