Skip to content

Commit c035366

Browse files
parakabjorn-helgaas
authored andcommitted
PCI: mt7621: Remove unused function pcie_rmw()
Function pcie_rmw() is not being used at all and can be deleted. Hence get rid of it, which fixes this warning: drivers/pci/controller/pcie-mt7621.c:112:20: warning: unused function 'pcie_rmw' [-Wunused-function] Fixes: 2bdd523 ("PCI: mt7621: Add MediaTek MT7621 PCIe host controller driver") Link: https://lore.kernel.org/r/[email protected] Link: https://lore.kernel.org/all/[email protected]/ Reported-by: kernel test robot <[email protected]> Signed-off-by: Sergio Paracuellos <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]>
1 parent 4b77e4a commit c035366

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

drivers/pci/controller/pcie-mt7621.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,6 @@ static inline void pcie_write(struct mt7621_pcie *pcie, u32 val, u32 reg)
109109
writel_relaxed(val, pcie->base + reg);
110110
}
111111

112-
static inline void pcie_rmw(struct mt7621_pcie *pcie, u32 reg, u32 clr, u32 set)
113-
{
114-
u32 val = readl_relaxed(pcie->base + reg);
115-
116-
val &= ~clr;
117-
val |= set;
118-
writel_relaxed(val, pcie->base + reg);
119-
}
120-
121112
static inline u32 pcie_port_read(struct mt7621_pcie_port *port, u32 reg)
122113
{
123114
return readl_relaxed(port->base + reg);

0 commit comments

Comments
 (0)