net/fsl: fix a bug in xgmac_mdio
authorShaohui Xie <Shaohui.Xie@freescale.com>
Tue, 13 Jan 2015 02:30:31 +0000 (10:30 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Jan 2015 21:43:29 +0000 (16:43 -0500)
commite54bfe9d7e5823f8b460e8de371f695ada41a0c1
treef963714f6d5c83bd845c2fd016e21c1c342a1759
parent0fe6de490320bfbf1b82a33d7ee49b62af5f29db
net/fsl: fix a bug in xgmac_mdio

There is a bug in xgmac_mdio_read when clear the bit MDIO_STAT_ENC,
which '&' is missed in 'mdio_stat &= ~MDIO_STAT_ENC'.

Signed-off-by: Shaohui Xie <Shaohui.Xie@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/xgmac_mdio.c