]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
PCI: rcar: Make PCI aware of the I/O resources
authorPhil Edworthy <phil.edworthy@renesas.com>
Fri, 2 Oct 2015 10:25:04 +0000 (11:25 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 30 Oct 2015 13:23:15 +0000 (08:23 -0500)
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>
drivers/pci/host/pcie-rcar.c

index 7678fe0820d712d00fe189e8bf3d0651d4277ae9..27e2c208f2358c6c78204aeefffb7a4e14c31019 100644 (file)
@@ -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);