Re: [PATCH] mfd: omap-usb-host: Remove some unused functions

From: Lee Jones
Date: Tue Jan 20 2015 - 08:43:18 EST


On Sun, 04 Jan 2015, Rickard Strandqvist wrote:

> 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@xxxxxxxxxxxxxxxxxx>
> ---
> drivers/mfd/omap-usb-host.c | 10 ----------
> 1 file changed, 10 deletions(-)

Applied, thanks.

> diff --git a/drivers/mfd/omap-usb-host.c b/drivers/mfd/omap-usb-host.c
> index 83dab2f..6b0f305 100644
> --- a/drivers/mfd/omap-usb-host.c
> +++ b/drivers/mfd/omap-usb-host.c
> @@ -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);
> -}
> -
> /*-------------------------------------------------------------------------*/
>
> /**

--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org â Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/