aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/bfin_mac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/bfin_mac.c b/drivers/net/bfin_mac.c
index 0a17fb48c55c..c993a32b3f50 100644
--- a/drivers/net/bfin_mac.c
+++ b/drivers/net/bfin_mac.c
@@ -408,7 +408,7 @@ static int mii_probe(struct net_device *dev)
408 mdc_div = ((sclk / MDC_CLK) / 2) - 1; 408 mdc_div = ((sclk / MDC_CLK) / 2) - 1;
409 409
410 sysctl = bfin_read_EMAC_SYSCTL(); 410 sysctl = bfin_read_EMAC_SYSCTL();
411 sysctl |= SET_MDCDIV(mdc_div); 411 sysctl = (sysctl & ~MDCDIV) | SET_MDCDIV(mdc_div);
412 bfin_write_EMAC_SYSCTL(sysctl); 412 bfin_write_EMAC_SYSCTL(sysctl);
413 413
414 /* search for connect PHY device */ 414 /* search for connect PHY device */