]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
net: sh_eth: Fix compile error sh_eth
authorNobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Wed, 18 Jun 2008 09:32:09 +0000 (18:32 +0900)
committerJeff Garzik <jgarzik@redhat.com>
Sat, 28 Jun 2008 14:23:33 +0000 (10:23 -0400)
Fix compile error on sh_eth and remove base address macro.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/sh_eth.c
drivers/net/sh_eth.h

index f64d987140a9ddfcf527fe4da064857a27368d43..37f3116ea6bdc04f98c2528ccb6ca649807a5215 100644 (file)
@@ -322,7 +322,7 @@ static int sh_eth_dev_init(struct net_device *ndev)
        ctrl_outl((FIFO_SIZE_T | FIFO_SIZE_R), ioaddr + FDR);
        ctrl_outl(0, ioaddr + TFTR);
 
-       ctrl_outl(RMCR_RST, ioaddr + RMCR);
+       ctrl_outl(0, ioaddr + RMCR);
 
        rx_int_var = mdp->rx_int_var = DESC_I_RINT8 | DESC_I_RINT5;
        tx_int_var = mdp->tx_int_var = DESC_I_TINT2;
@@ -994,7 +994,7 @@ static int sh_mdio_init(struct net_device *ndev, int id)
        /* Hook up MII support for ethtool */
        mdp->mii_bus->name = "sh_mii";
        mdp->mii_bus->dev = &ndev->dev;
-       mdp->mii_bus->id = id;
+       mdp->mii_bus->id[0] = id;
 
        /* PHY IRQ */
        mdp->mii_bus->irq = kmalloc(sizeof(int)*PHY_MAX_ADDR, GFP_KERNEL);
index ca2db6bb3c616ecc50ced9dc8c0f59babb0c375a..e01e1c3477156612f3563977fc5efb9eb04bfbd0 100644 (file)
@@ -40,8 +40,6 @@
 #define PKT_BUF_SZ             1538
 
 /* Chip Base Address */
-#define SH_ETH0_BASE 0xA7000000
-#define SH_ETH1_BASE 0xA7000400
 #define SH_TSU_ADDR 0xA7000804
 
 /* Chip Registers */
@@ -462,3 +460,5 @@ static void swaps(char *src, int len)
                *p = swab32(*p);
 #endif
 }
+
+#endif