linux-mips
[Top] [All Lists]

[PATCH] Fix port 0 mac address for mips mv643xx platforms

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH] Fix port 0 mac address for mips mv643xx platforms
From: "Dale Farnsworth" <dale@farnsworth.org>
Date: Tue, 20 Feb 2007 15:46:49 -0700
Cc: linux-mips@linux-mips.org
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mutt/1.5.13 (2006-08-11)
From: Dale Farnsworth <dale@farnsworth.org>

Signed-off-by: Dale Farnsworth <dale@farnsworth.org>

---

Untested, but seems obvious enough.

 arch/mips/momentum/jaguar_atx/platform.c |    2 +-
 arch/mips/momentum/ocelot_3/platform.c   |    2 +-
 arch/mips/momentum/ocelot_c/platform.c   |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

Index: b/arch/mips/momentum/jaguar_atx/platform.c
===================================================================
--- a/arch/mips/momentum/jaguar_atx/platform.c
+++ b/arch/mips/momentum/jaguar_atx/platform.c
@@ -200,7 +200,7 @@ static int __init mv643xx_eth_add_pds(vo
        int ret;
 
        get_mac(mac);
-       eth_mac_add(eth1_mac_addr, mac, 0);
+       eth_mac_add(eth0_mac_addr, mac, 0);
        eth_mac_add(eth1_mac_addr, mac, 1);
        eth_mac_add(eth2_mac_addr, mac, 2);
        ret = platform_add_devices(mv643xx_eth_pd_devs,
Index: b/arch/mips/momentum/ocelot_3/platform.c
===================================================================
--- a/arch/mips/momentum/ocelot_3/platform.c
+++ b/arch/mips/momentum/ocelot_3/platform.c
@@ -200,7 +200,7 @@ static int __init mv643xx_eth_add_pds(vo
        int ret;
 
        get_mac(mac);
-       eth_mac_add(eth1_mac_addr, mac, 0);
+       eth_mac_add(eth0_mac_addr, mac, 0);
        eth_mac_add(eth1_mac_addr, mac, 1);
        eth_mac_add(eth2_mac_addr, mac, 2);
        ret = platform_add_devices(mv643xx_eth_pd_devs,
Index: b/arch/mips/momentum/ocelot_c/platform.c
===================================================================
--- a/arch/mips/momentum/ocelot_c/platform.c
+++ b/arch/mips/momentum/ocelot_c/platform.c
@@ -174,7 +174,7 @@ static int __init mv643xx_eth_add_pds(vo
        int ret;
 
        get_mac(mac);
-       eth_mac_add(eth1_mac_addr, mac, 0);
+       eth_mac_add(eth0_mac_addr, mac, 0);
        eth_mac_add(eth1_mac_addr, mac, 1);
        ret = platform_add_devices(mv643xx_eth_pd_devs,
                        ARRAY_SIZE(mv643xx_eth_pd_devs));

<Prev in Thread] Current Thread [Next in Thread>