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 <phil.edworthy@renesas.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Simon Horman <horms+renesas@verge.net.au>
This commit is contained in:
parent
b77188495d
commit
0549252a1d
@ -317,9 +317,10 @@ static struct pci_ops rcar_pcie_ops = {
|
|||||||
.write = rcar_pcie_write_conf,
|
.write = rcar_pcie_write_conf,
|
||||||
};
|
};
|
||||||
|
|
||||||
static void rcar_pcie_setup_window(int win, struct resource *res,
|
static void rcar_pcie_setup_window(int win, struct rcar_pcie *pcie)
|
||||||
struct rcar_pcie *pcie)
|
|
||||||
{
|
{
|
||||||
|
struct resource *res = &pcie->res[win];
|
||||||
|
|
||||||
/* Setup PCIe address space mappings for each resource */
|
/* Setup PCIe address space mappings for each resource */
|
||||||
resource_size_t size;
|
resource_size_t size;
|
||||||
u32 mask;
|
u32 mask;
|
||||||
@ -360,7 +361,7 @@ static int rcar_pcie_setup(int nr, struct pci_sys_data *sys)
|
|||||||
if (!res->flags)
|
if (!res->flags)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
rcar_pcie_setup_window(i, res, pcie);
|
rcar_pcie_setup_window(i, pcie);
|
||||||
|
|
||||||
if (res->flags & IORESOURCE_IO)
|
if (res->flags & IORESOURCE_IO)
|
||||||
pci_ioremap_io(nr * SZ_64K, res->start);
|
pci_ioremap_io(nr * SZ_64K, res->start);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user