mfd: omap-usb-host: Remove some unused functions
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Sun, 4 Jan 2015 00:11:21 +0000 (01:11 +0100)
committerLee Jones <lee.jones@linaro.org>
Thu, 22 Jan 2015 16:03:53 +0000 (16:03 +0000)
Removes some functions that are not used anywhere:
usbhs_readb() usbhs_writeb()

This was partially found by using a static code analysis program called cppcheck.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/omap-usb-host.c

index 04cd54dd507c2c722d088bb1bc35dfa4b79fe38c..1d924d1533c02756124dffe1262e4333ed9b6b5f 100644 (file)
@@ -129,16 +129,6 @@ static inline u32 usbhs_read(void __iomem *base, u32 reg)
        return readl_relaxed(base + reg);
 }
 
-static inline void usbhs_writeb(void __iomem *base, u8 reg, u8 val)
-{
-       writeb_relaxed(val, base + reg);
-}
-
-static inline u8 usbhs_readb(void __iomem *base, u8 reg)
-{
-       return readb_relaxed(base + reg);
-}
-
 /*-------------------------------------------------------------------------*/
 
 /**