summaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorPhil Edworthy <phil.edworthy@renesas.com>2015-10-02 12:25:04 +0200
committerBjorn Helgaas <bhelgaas@google.com>2015-10-30 14:23:15 +0100
commitd0c3f4dbd20205529be1c0e0de618ce3fdaac844 (patch)
treee45747c432dd8c9ac3a349c786f1c4301be5a416 /drivers/pci
parentPCI: rcar: Build pcie-rcar.c only on ARM (diff)
downloadlinux-d0c3f4dbd20205529be1c0e0de618ce3fdaac844.tar.xz
linux-d0c3f4dbd20205529be1c0e0de618ce3fdaac844.zip
PCI: rcar: Make PCI aware of the I/O resources
Make PCI aware of the I/O resources. Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/host/pcie-rcar.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/pci/host/pcie-rcar.c b/drivers/pci/host/pcie-rcar.c
index 7678fe0820d7..27e2c208f235 100644
--- a/drivers/pci/host/pcie-rcar.c
+++ b/drivers/pci/host/pcie-rcar.c
@@ -373,8 +373,9 @@ static int rcar_pcie_setup(int nr, struct pci_sys_data *sys)
if (res->flags & IORESOURCE_IO) {
phys_addr_t io_start = pci_pio_to_address(res->start);
pci_ioremap_io(nr * SZ_64K, io_start);
- } else
- pci_add_resource(&sys->resources, res);
+ }
+
+ pci_add_resource(&sys->resources, res);
}
pci_add_resource(&sys->resources, &pcie->busn);