public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arch: avr32: mach-at32ap: at32ap700x:  Remove unused function
@ 2015-01-01 17:52 Rickard Strandqvist
  2015-01-02 13:21 ` Hans-Christian Egtvedt
  0 siblings, 1 reply; 2+ messages in thread
From: Rickard Strandqvist @ 2015-01-01 17:52 UTC (permalink / raw)
  To: Haavard Skinnemoen, Hans-Christian Egtvedt
  Cc: Rickard Strandqvist, linux-kernel

Remove the function set_ebi_sfr_bits() that is not used anywhere.

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

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
---
 arch/avr32/mach-at32ap/at32ap700x.c |   11 -----------
 1 file changed, 11 deletions(-)

diff --git a/arch/avr32/mach-at32ap/at32ap700x.c b/arch/avr32/mach-at32ap/at32ap700x.c
index 37b7560..d84516c 100644
--- a/arch/avr32/mach-at32ap/at32ap700x.c
+++ b/arch/avr32/mach-at32ap/at32ap700x.c
@@ -744,17 +744,6 @@ struct clk at32_hmatrix_clk = {
 	.users		= 1,
 };
 
-/*
- * Set bits in the HMATRIX Special Function Register (SFR) used by the
- * External Bus Interface (EBI). This can be used to enable special
- * features like CompactFlash support, NAND Flash support, etc. on
- * certain chipselects.
- */
-static inline void set_ebi_sfr_bits(u32 mask)
-{
-	hmatrix_sfr_set_bits(HMATRIX_SLAVE_EBI, mask);
-}
-
 /* --------------------------------------------------------------------
  *  Timer/Counter (TC)
  * -------------------------------------------------------------------- */
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] arch: avr32: mach-at32ap: at32ap700x:  Remove unused function
  2015-01-01 17:52 [PATCH] arch: avr32: mach-at32ap: at32ap700x: Remove unused function Rickard Strandqvist
@ 2015-01-02 13:21 ` Hans-Christian Egtvedt
  0 siblings, 0 replies; 2+ messages in thread
From: Hans-Christian Egtvedt @ 2015-01-02 13:21 UTC (permalink / raw)
  To: Rickard Strandqvist; +Cc: Haavard Skinnemoen, linux-kernel

Around Thu 01 Jan 2015 18:52:22 +0100 or thereabout, Rickard Strandqvist wrote:
> Remove the function set_ebi_sfr_bits() that is not used anywhere.
> 
> This was partially found by using a static code analysis program called cppcheck.
> 
> Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>

Hmmm, nack, I suspect there was non-upstreamed boards that used this to
fiddle with the hmatrix. I even think Atmel still has an appnote about how to
do this.

At least NGW100 was used to verify that fiddling with hmatrix worked.

> ---
>  arch/avr32/mach-at32ap/at32ap700x.c |   11 -----------
>  1 file changed, 11 deletions(-)
> 
> diff --git a/arch/avr32/mach-at32ap/at32ap700x.c b/arch/avr32/mach-at32ap/at32ap700x.c
> index 37b7560..d84516c 100644
> --- a/arch/avr32/mach-at32ap/at32ap700x.c
> +++ b/arch/avr32/mach-at32ap/at32ap700x.c
> @@ -744,17 +744,6 @@ struct clk at32_hmatrix_clk = {
>  	.users		= 1,
>  };
>  
> -/*
> - * Set bits in the HMATRIX Special Function Register (SFR) used by the
> - * External Bus Interface (EBI). This can be used to enable special
> - * features like CompactFlash support, NAND Flash support, etc. on
> - * certain chipselects.
> - */
> -static inline void set_ebi_sfr_bits(u32 mask)
> -{
> -	hmatrix_sfr_set_bits(HMATRIX_SLAVE_EBI, mask);
> -}
> -
>  /* --------------------------------------------------------------------
>   *  Timer/Counter (TC)
>   * -------------------------------------------------------------------- */
-- 
mvh
Hans-Christian Egtvedt

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-02 13:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-01 17:52 [PATCH] arch: avr32: mach-at32ap: at32ap700x: Remove unused function Rickard Strandqvist
2015-01-02 13:21 ` Hans-Christian Egtvedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox