devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Lee Jones <lee.jones@linaro.org>
To: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Cc: Samuel Ortiz <sameo@linux.intel.com>,
	Grant Likely <grant.likely@linaro.org>,
	Rob Herring <robh+dt@kernel.org>,
	linux-kernel@vger.kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH] mfd: omap-usb-host: Remove some unused functions
Date: Tue, 20 Jan 2015 13:43:04 +0000	[thread overview]
Message-ID: <20150120134304.GJ13701@x1> (raw)
In-Reply-To: <1420330281-5228-1-git-send-email-rickard_strandqvist@spectrumdigital.se>

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@spectrumdigital.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

      reply	other threads:[~2015-01-20 13:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-04  0:11 [PATCH] mfd: omap-usb-host: Remove some unused functions Rickard Strandqvist
2015-01-20 13:43 ` Lee Jones [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150120134304.GJ13701@x1 \
    --to=lee.jones@linaro.org \
    --cc=devicetree@vger.kernel.org \
    --cc=grant.likely@linaro.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rickard_strandqvist@spectrumdigital.se \
    --cc=robh+dt@kernel.org \
    --cc=sameo@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).