micrel: fix masking off LED bits
[platform/adaptation/renesas_rcar/renesas_kernel.git] / drivers / net / phy / micrel.c
index 0c9e434..5ad971a 100644 (file)
@@ -167,7 +167,7 @@ static int kszphy_setup_led(struct phy_device *phydev,
        if (temp < 0)
                return temp;
 
-       temp &= 3 << shift;
+       temp &= ~(3 << shift);
        temp |= val << shift;
        rc = phy_write(phydev, reg, temp);