Skip to contentSkip to conversation

usb: ehci-omap: drop unused ehci_read() function

PATCH In review Arnd Bergmann 2 participants 2 messages Apr 28, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb: ehci-omap: drop unused ehci_read() function

From: Arnd Bergmann <[email protected]>

After moving the omap1 platform into generalized multiplatform support on ARM, the kernel test robot points out a W=1 warning that now shows up in more configurations:

drivers/usb/host/ehci-omap.c:64:19: warning: unused function 'ehci_read'

The function was last used 9 years ago and can just be removed.

Fixes 87425ad36330 ("USB: ehci-omap: Remove PHY reset handling code")
---
 drivers/usb/host/ehci-omap.c | 5 -----
 1 file changed, 5 deletions(-)
drivers/usb/host/ehci-omap.c +0 -5
index 7f4a03e8647a..8c45bc17a580 100644
@@ -61,11 +61,6 @@ static inline void ehci_write(void __iomem *base, u32 reg, u32 val)
 	__raw_writel(val, base + reg);
 }
 
-static inline u32 ehci_read(void __iomem *base, u32 reg)
-{
-	return __raw_readl(base + reg);
-}
-
 /* configure so an HC device and id are always provided */
 /* always called with process context; sleeping is OK */
 
Signature · 1 line
2.29.2
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

After moving the omap1 platform into generalized multiplatform support on ARM, the kernel test robot points out a W=1 warning that now shows up in more configurations:

Quoted 8 lines

drivers/usb/host/ehci-omap.c:64:19: warning: unused function 'ehci_read'

The function was last used 9 years ago and can just be removed.

Fixes 87425ad36330 ("USB: ehci-omap: Remove PHY reset handling code")

---