linux-cvs-patches
[Top] [All Lists]

CVS Update@linux-mips.org: linux

To: linux-cvs-patches@linux-mips.org
Subject: CVS Update@linux-mips.org: linux
From: ths@linux-mips.org
Date: Mon, 03 Jan 2005 18:10:21 +0000
Reply-to: linux-mips@linux-mips.org
Sender: linux-cvs-patches-bounce@linux-mips.org
CVSROOT:        /home/cvs
Module name:    linux
Changes by:     ths@ftp.linux-mips.org  05/01/03 18:10:14

Modified files:
        drivers/net    : sb1250-mac.c 

Log message:
        Fix initialization of internal sbmac eth1.

diff -urN linux/drivers/net/sb1250-mac.c linux/drivers/net/sb1250-mac.c
--- linux/drivers/net/sb1250-mac.c      2004/11/27 06:19:22     1.33
+++ linux/drivers/net/sb1250-mac.c      2005/01/03 18:10:14     1.34
@@ -2886,12 +2886,12 @@
                dev->mem_end = 0;
                if (sbmac_init(dev, idx)) {
                        port = A_MAC_CHANNEL_BASE(idx);
-                       SBMAC_WRITECSR(KSEG1ADDR(port+R_MAC_ETHERNET_ADDR),
-                                       sbmac_orig_hwaddr[idx] );
+                       SBMAC_WRITECSR(IOADDR(port+R_MAC_ETHERNET_ADDR),
+                                      sbmac_orig_hwaddr[idx]);
                        free_netdev(dev);
                        continue;
                }
-               dev_sbmac[idx++] = dev;
+               dev_sbmac[idx] = dev;
        }
        return 0;
 }

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