[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20150120134304.GJ13701@x1>
Date: Tue, 20 Jan 2015 13:43:04 +0000
From: Lee Jones <lee.jones@...aro.org>
To: Rickard Strandqvist <rickard_strandqvist@...ctrumdigital.se>
Cc: Samuel Ortiz <sameo@...ux.intel.com>,
Grant Likely <grant.likely@...aro.org>,
Rob Herring <robh+dt@...nel.org>, linux-kernel@...r.kernel.org,
devicetree@...r.kernel.org
Subject: Re: [PATCH] mfd: omap-usb-host: Remove some unused functions
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@...ctrumdigital.se>
> ---
> 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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists