aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/fec.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2009-01-29 11:56:45 +0900
committerPaul Mundt <lethal@linux-sh.org>2009-01-29 11:56:45 +0900
commite4e3c3f17fdb78282e3d9b4af7ec90d6e65798eb (patch)
treeb7018503c1b343e46b9a406855e64ec13bd62d6a /drivers/net/fec.c
parentae5e6d05a606e05e054f816bd01e02f69d38d283 (diff)
parentc20f326a62c046ee958c3aa584f183201adb229f (diff)
Merge branch 'sh/stable-updates'
Diffstat (limited to 'drivers/net/fec.c')
-rw-r--r--drivers/net/fec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/fec.c b/drivers/net/fec.c
index 7e33c129d51..2769083bfe8 100644
--- a/drivers/net/fec.c
+++ b/drivers/net/fec.c
@@ -1698,7 +1698,7 @@ static void __inline__ fec_set_mii(struct net_device *dev, struct fec_enet_priva
/*
* Set MII speed to 2.5 MHz
*/
- fep->phy_speed = ((((MCF_CLK / 2) / (2500000 / 10)) + 5) / 10) * 2;
+ fep->phy_speed = (MCF_CLK / 3) / (2500000 * 2 ) * 2;
fecp->fec_mii_speed = fep->phy_speed;
fec_restart(dev, 0);