Skip to content

Commit 4363f21

Browse files
Tom Rixlag-linaro
authored andcommitted
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. Signed-off-by: Tom Rix <trix@redhat.com> Signed-off-by: Lee Jones <lee@kernel.org> Link: https://lore.kernel.org/r/20230322125803.2570968-1-trix@redhat.com
1 parent 75c0a1b commit 4363f21

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

drivers/mfd/omap-usb-tll.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,6 @@ static inline void usbtll_writeb(void __iomem *base, u32 reg, u8 val)
125125
writeb_relaxed(val, base + reg);
126126
}
127127

128-
static inline u8 usbtll_readb(void __iomem *base, u32 reg)
129-
{
130-
return readb_relaxed(base + reg);
131-
}
132-
133128
/*-------------------------------------------------------------------------*/
134129

135130
static bool is_ohci_port(enum usbhs_omap_port_mode pmode)

0 commit comments

Comments
 (0)