Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Tom Rix and committed by
Lee Jones
4363f211 75c0a1b3

-5
-5
drivers/mfd/omap-usb-tll.c
··· 125 125 writeb_relaxed(val, base + reg); 126 126 } 127 127 128 - static inline u8 usbtll_readb(void __iomem *base, u32 reg) 129 - { 130 - return readb_relaxed(base + reg); 131 - } 132 - 133 128 /*-------------------------------------------------------------------------*/ 134 129 135 130 static bool is_ohci_port(enum usbhs_omap_port_mode pmode)