netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] [net-next] ARM: orion: remove unused wnr854t_switch_plat_data
@ 2017-02-08 21:24 Arnd Bergmann
  2017-02-08 22:03 ` Florian Fainelli
  2017-02-09 22:06 ` David Miller
  0 siblings, 2 replies; 3+ messages in thread
From: Arnd Bergmann @ 2017-02-08 21:24 UTC (permalink / raw)
  To: David S . Miller
  Cc: Andrew Lunn, Florian Fainelli, Jason Cooper, Arnd Bergmann,
	netdev, Russell King, linux-kernel, Gregory Clement,
	linux-arm-kernel, Sebastian Hesselbarth

The other instances of this structure got removed along with the MDIO
device change, but this one was left behind and needs to be removed
as well:

arch/arm/mach-orion5x/wnr854t-setup.c:109:44: error: 'wnr854t_switch_plat_data' defined but not used [-Werror=unused-variable]
 static struct dsa_platform_data __initdata wnr854t_switch_plat_data = {

Fixes: 575e93f7b5e6 ("ARM: orion: Register DSA switch as a MDIO device")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 arch/arm/mach-orion5x/wnr854t-setup.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/arch/arm/mach-orion5x/wnr854t-setup.c b/arch/arm/mach-orion5x/wnr854t-setup.c
index ac3376fc269f..d162d4c7f85d 100644
--- a/arch/arm/mach-orion5x/wnr854t-setup.c
+++ b/arch/arm/mach-orion5x/wnr854t-setup.c
@@ -106,11 +106,6 @@ static struct dsa_chip_data wnr854t_switch_chip_data = {
 	.port_names[7] = "lan2",
 };
 
-static struct dsa_platform_data __initdata wnr854t_switch_plat_data = {
-	.nr_chips	= 1,
-	.chip		= &wnr854t_switch_chip_data,
-};
-
 static void __init wnr854t_init(void)
 {
 	/*
-- 
2.9.0

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

* Re: [PATCH] [net-next] ARM: orion: remove unused wnr854t_switch_plat_data
  2017-02-08 21:24 [PATCH] [net-next] ARM: orion: remove unused wnr854t_switch_plat_data Arnd Bergmann
@ 2017-02-08 22:03 ` Florian Fainelli
  2017-02-09 22:06 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: Florian Fainelli @ 2017-02-08 22:03 UTC (permalink / raw)
  To: Arnd Bergmann, David S . Miller
  Cc: Andrew Lunn, Jason Cooper, netdev, Russell King, linux-kernel,
	Gregory Clement, linux-arm-kernel, Sebastian Hesselbarth

On 02/08/2017 01:24 PM, Arnd Bergmann wrote:
> The other instances of this structure got removed along with the MDIO
> device change, but this one was left behind and needs to be removed
> as well:
> 
> arch/arm/mach-orion5x/wnr854t-setup.c:109:44: error: 'wnr854t_switch_plat_data' defined but not used [-Werror=unused-variable]
>  static struct dsa_platform_data __initdata wnr854t_switch_plat_data = {
> 
> Fixes: 575e93f7b5e6 ("ARM: orion: Register DSA switch as a MDIO device")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Acked-by: Florian Fainelli <f.fainelli@gmail.com>

Thanks Arnd!
-- 
Florian

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

* Re: [PATCH] [net-next] ARM: orion: remove unused wnr854t_switch_plat_data
  2017-02-08 21:24 [PATCH] [net-next] ARM: orion: remove unused wnr854t_switch_plat_data Arnd Bergmann
  2017-02-08 22:03 ` Florian Fainelli
@ 2017-02-09 22:06 ` David Miller
  1 sibling, 0 replies; 3+ messages in thread
From: David Miller @ 2017-02-09 22:06 UTC (permalink / raw)
  To: arnd
  Cc: andrew, f.fainelli, jason, netdev, linux, linux-kernel,
	gregory.clement, linux-arm-kernel, sebastian.hesselbarth

From: Arnd Bergmann <arnd@arndb.de>
Date: Wed,  8 Feb 2017 22:24:19 +0100

> The other instances of this structure got removed along with the MDIO
> device change, but this one was left behind and needs to be removed
> as well:
> 
> arch/arm/mach-orion5x/wnr854t-setup.c:109:44: error: 'wnr854t_switch_plat_data' defined but not used [-Werror=unused-variable]
>  static struct dsa_platform_data __initdata wnr854t_switch_plat_data = {
> 
> Fixes: 575e93f7b5e6 ("ARM: orion: Register DSA switch as a MDIO device")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>

Applied.

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

end of thread, other threads:[~2017-02-09 22:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-08 21:24 [PATCH] [net-next] ARM: orion: remove unused wnr854t_switch_plat_data Arnd Bergmann
2017-02-08 22:03 ` Florian Fainelli
2017-02-09 22:06 ` David Miller

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).