From: Phil Edworthy Date: Fri, 2 Oct 2015 10:25:04 +0000 (+0100) Subject: PCI: rcar: Make PCI aware of the I/O resources X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d0c3f4dbd20205529be1c0e0de618ce3fdaac844;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git PCI: rcar: Make PCI aware of the I/O resources Make PCI aware of the I/O resources. Signed-off-by: Phil Edworthy Signed-off-by: Bjorn Helgaas Acked-by: Simon Horman --- 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);