aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sungem.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2009-11-19 01:19:03 -0500
committerDavid S. Miller <davem@davemloft.net>2009-11-19 01:19:03 -0500
commit3505d1a9fd65e2d3e00827857b6795d9d8983658 (patch)
tree941cfafdb57c427bb6b7ebf6354ee93b2a3693b5 /drivers/net/sungem.c
parentdfef948ed2ba69cf041840b5e860d6b4e16fa0b1 (diff)
parent66b00a7c93ec782d118d2c03bd599cfd041e80a1 (diff)
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts: drivers/net/sfc/sfe4001.c drivers/net/wireless/libertas/cmd.c drivers/staging/Kconfig drivers/staging/Makefile drivers/staging/rtl8187se/Kconfig drivers/staging/rtl8192e/Kconfig
Diffstat (limited to 'drivers/net/sungem.c')
-rw-r--r--drivers/net/sungem.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/net/sungem.c b/drivers/net/sungem.c
index d6f4faf5bbcb..b571a1babab9 100644
--- a/drivers/net/sungem.c
+++ b/drivers/net/sungem.c
@@ -38,6 +38,7 @@
38#include <linux/interrupt.h> 38#include <linux/interrupt.h>
39#include <linux/ioport.h> 39#include <linux/ioport.h>
40#include <linux/in.h> 40#include <linux/in.h>
41#include <linux/sched.h>
41#include <linux/slab.h> 42#include <linux/slab.h>
42#include <linux/string.h> 43#include <linux/string.h>
43#include <linux/delay.h> 44#include <linux/delay.h>
@@ -2060,7 +2061,15 @@ static int gem_check_invariants(struct gem *gp)
2060 mif_cfg &= ~MIF_CFG_PSELECT; 2061 mif_cfg &= ~MIF_CFG_PSELECT;
2061 writel(mif_cfg, gp->regs + MIF_CFG); 2062 writel(mif_cfg, gp->regs + MIF_CFG);
2062 } else { 2063 } else {
2063 gp->phy_type = phy_serialink; 2064#ifdef CONFIG_SPARC
2065 const char *p;
2066
2067 p = of_get_property(gp->of_node, "shared-pins", NULL);
2068 if (p && !strcmp(p, "serdes"))
2069 gp->phy_type = phy_serdes;
2070 else
2071#endif
2072 gp->phy_type = phy_serialink;
2064 } 2073 }
2065 if (gp->phy_type == phy_mii_mdio1 || 2074 if (gp->phy_type == phy_mii_mdio1 ||
2066 gp->phy_type == phy_mii_mdio0) { 2075 gp->phy_type == phy_mii_mdio0) {