Skip to content

Commit 42d7a8d

Browse files
kwilczynskiLorenzo Pieralisi
authored andcommitted
PCI: mobiveil: Remove unused readl and writel functions
The PCIe host controller driver for Layerscape 4th generation SoC was added in the commit d29ad70 ("PCI: mobiveil: Add PCIe Gen4 RC driver for Layerscape SoCs"). At this time two static functions were introduced that appear to currently have no users. Since nothing is using neither of these functions at the moment they can be safely removed. This resolves the following build time warnings: drivers/pci/controller/mobiveil/pcie-layerscape-gen4.c:45:19: warning: unused function 'ls_pcie_g4_lut_readl' [-Wunused-function] drivers/pci/controller/mobiveil/pcie-layerscape-gen4.c:50:20: warning: unused function 'ls_pcie_g4_lut_writel' [-Wunused-function] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Krzysztof Wilczyński <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]>
1 parent 6efb943 commit 42d7a8d

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

drivers/pci/controller/mobiveil/pcie-layerscape-gen4.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,6 @@ struct ls_pcie_g4 {
4242
int irq;
4343
};
4444

45-
static inline u32 ls_pcie_g4_lut_readl(struct ls_pcie_g4 *pcie, u32 off)
46-
{
47-
return ioread32(pcie->pci.csr_axi_slave_base + PCIE_LUT_OFF + off);
48-
}
49-
50-
static inline void ls_pcie_g4_lut_writel(struct ls_pcie_g4 *pcie,
51-
u32 off, u32 val)
52-
{
53-
iowrite32(val, pcie->pci.csr_axi_slave_base + PCIE_LUT_OFF + off);
54-
}
55-
5645
static inline u32 ls_pcie_g4_pf_readl(struct ls_pcie_g4 *pcie, u32 off)
5746
{
5847
return ioread32(pcie->pci.csr_axi_slave_base + PCIE_PF_OFF + off);

0 commit comments

Comments
 (0)