]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/net/bfin_mac.c
[SCSI] lpfc: Balance locking
[linux-2.6-omap-h63xx.git] / drivers / net / bfin_mac.c
index 0a17fb48c55ce51891d842780de244a43c8692ea..c993a32b3f50c1b0389a90ee193aa7bb24e94ba4 100644 (file)
@@ -408,7 +408,7 @@ static int mii_probe(struct net_device *dev)
        mdc_div = ((sclk / MDC_CLK) / 2) - 1;
 
        sysctl = bfin_read_EMAC_SYSCTL();
-       sysctl |= SET_MDCDIV(mdc_div);
+       sysctl = (sysctl & ~MDCDIV) | SET_MDCDIV(mdc_div);
        bfin_write_EMAC_SYSCTL(sysctl);
 
        /* search for connect PHY device */