micrel: fix masking off LED bits
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Tue, 18 Mar 2014 23:58:16 +0000 (02:58 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Mar 2014 21:41:50 +0000 (17:41 -0400)
commit28bdc499d647124fa5844453d35e6f5d1b3810dc
tree0fb29b75fe86ebaaf92c84aa2288c548f98d9b0f
parent3ab428a4c5ad929f93f9742d2a222ae33c242c3d
micrel: fix masking off LED bits

Commit 20d8435a1cff (phy: micrel: add of configuration for LED mode) made the
obvious mistake when masking off  the LED mode bits: forgot to do a logical NOT
to the mask with which it ANDs the register value, so that unrelated bits are
cleared instead.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Ben Dooks <ben.dooks@codethink.co.uk>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/micrel.c