Skip to content

Commit 9cd5f2c

Browse files
committed
Merge branch 'pci/controller/rcar'
- Remove unused static pcie_base and pcie_dev (Geert Uytterhoeven) * pci/controller/rcar: PCI: rcar: Use correct product family name for Renesas R-Car PCI: rcar-host: Remove unused static pcie_base and pcie_dev
2 parents 5c13b3c + e28e75e commit 9cd5f2c

File tree

1 file changed

+2
-23
lines changed

1 file changed

+2
-23
lines changed

drivers/pci/controller/pcie-rcar-host.c

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -41,21 +41,6 @@ struct rcar_msi {
4141
int irq2;
4242
};
4343

44-
#ifdef CONFIG_ARM
45-
/*
46-
* Here we keep a static copy of the remapped PCIe controller address.
47-
* This is only used on aarch32 systems, all of which have one single
48-
* PCIe controller, to provide quick access to the PCIe controller in
49-
* the L1 link state fixup function, called from the ARM fault handler.
50-
*/
51-
static void __iomem *pcie_base;
52-
/*
53-
* Static copy of PCIe device pointer, so we can check whether the
54-
* device is runtime suspended or not.
55-
*/
56-
static struct device *pcie_dev;
57-
#endif
58-
5944
/* Structure representing the PCIe interface */
6045
struct rcar_pcie_host {
6146
struct rcar_pcie pcie;
@@ -684,7 +669,7 @@ static void rcar_compose_msi_msg(struct irq_data *data, struct msi_msg *msg)
684669
}
685670

686671
static struct irq_chip rcar_msi_bottom_chip = {
687-
.name = "Rcar MSI",
672+
.name = "R-Car MSI",
688673
.irq_ack = rcar_msi_irq_ack,
689674
.irq_mask = rcar_msi_irq_mask,
690675
.irq_unmask = rcar_msi_irq_unmask,
@@ -813,7 +798,7 @@ static int rcar_pcie_enable_msi(struct rcar_pcie_host *host)
813798

814799
/*
815800
* Setup MSI data target using RC base address address, which
816-
* is guaranteed to be in the low 32bit range on any RCar HW.
801+
* is guaranteed to be in the low 32bit range on any R-Car HW.
817802
*/
818803
rcar_pci_write_reg(pcie, lower_32_bits(res.start) | MSIFE, PCIEMSIALR);
819804
rcar_pci_write_reg(pcie, upper_32_bits(res.start), PCIEMSIAUR);
@@ -879,12 +864,6 @@ static int rcar_pcie_get_resources(struct rcar_pcie_host *host)
879864
}
880865
host->msi.irq2 = i;
881866

882-
#ifdef CONFIG_ARM
883-
/* Cache static copy for L1 link state fixup hook on aarch32 */
884-
pcie_base = pcie->base;
885-
pcie_dev = pcie->dev;
886-
#endif
887-
888867
return 0;
889868

890869
err_irq2:

0 commit comments

Comments
 (0)