Skip to contentSkip to conversation

mfd: omap-usb-tll: remove unused usbtll_readb function

PATCH Applied Tom Rix 2 participants 2 messages Mar 22, 2023 – Mar 30, 2023

Subsystems (2)
lore
Share & tools
lore

Tom Rix

author
#0 lore raw

PATCH 1/1 mfd: omap-usb-tll: remove unused usbtll_readb function

clang with W=1 reports drivers/mfd/omap-usb-tll.c:128:18: error: unused function
'usbtll_readb' [-Werror,-Wunused-function]
static inline u8 usbtll_readb(void __iomem *base, u32 reg)

                 ^

This function is not used so remove it.

---
 drivers/mfd/omap-usb-tll.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/mfd/omap-usb-tll.c +0 -5
index 8ca4067da6cd..69cbc2097911 100644
@@ -125,11 +125,6 @@ static inline void usbtll_writeb(void __iomem *base, u32 reg, u8 val)
 	writeb_relaxed(val, base + reg);
 }
 
-static inline u8 usbtll_readb(void __iomem *base, u32 reg)
-{
-	return readb_relaxed(base + reg);
-}
-
 /*-------------------------------------------------------------------------*/
 
 static bool is_ohci_port(enum usbhs_omap_port_mode pmode)
Signature · 1 line
2.27.0
maintainer Applied
#1 lore raw
Quoted 11 lines · Tom Rix

clang with W=1 reports drivers/mfd/omap-usb-tll.c:128:18: error: unused function
'usbtll_readb' [-Werror,-Wunused-function]
static inline u8 usbtll_readb(void __iomem *base, u32 reg)

                 ^

This function is not used so remove it.

---
 drivers/mfd/omap-usb-tll.c | 5 -----
 1 file changed, 5 deletions(-)

Applied, thanks

--
Lee Jones [李琼斯]