From: Phil Edworthy Date: Mon, 30 Jun 2014 08:37:01 +0000 (+0100) Subject: PCI: rcar: Remove rcar_pcie_setup_window() resource argument X-Git-Tag: v3.14.28+ltsi~290 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bdc87eb480c55572376b70337cb1e7d7b83dbe8a;p=platform%2Fkernel%2Flinux-stable.git PCI: rcar: Remove rcar_pcie_setup_window() resource argument rcar_pcie_setup_window() took both the window number and the resource, which was redundant because we can look up the resource from the window number. Remove the "res" argument. Signed-off-by: Phil Edworthy Signed-off-by: Bjorn Helgaas Acked-by: Simon Horman (cherry picked from commit 0549252a1da98c5c39610e1700a9a1755acd0a70) Signed-off-by: Simon Horman --- diff --git a/drivers/pci/host/pcie-rcar.c b/drivers/pci/host/pcie-rcar.c index 758e2b4645f1..efdea0766b64 100644 --- a/drivers/pci/host/pcie-rcar.c +++ b/drivers/pci/host/pcie-rcar.c @@ -319,9 +319,10 @@ static struct pci_ops rcar_pcie_ops = { .write = rcar_pcie_write_conf, }; -static void rcar_pcie_setup_window(int win, struct resource *res, - struct rcar_pcie *pcie) +static void rcar_pcie_setup_window(int win, struct rcar_pcie *pcie) { + struct resource *res = &pcie->res[win]; + /* Setup PCIe address space mappings for each resource */ resource_size_t size; u32 mask; @@ -362,7 +363,7 @@ static int rcar_pcie_setup(int nr, struct pci_sys_data *sys) if (!res->flags) continue; - rcar_pcie_setup_window(i, res, pcie); + rcar_pcie_setup_window(i, pcie); if (res->flags & IORESOURCE_IO) pci_ioremap_io(nr * SZ_64K, res->start);