diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2013-12-20 18:33:52 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-27 22:28:02 +0400 |
commit | 5322dbf00ad7862272d460d4711401cd4ef5b760 (patch) | |
tree | 181ba5206d8b9c20d2092b8419d1e9ff00ec6ae9 /drivers/net/ethernet/broadcom/bgmac.c | |
parent | 3193502e5b2af4ff2c6df7f711713676645f91c5 (diff) | |
download | linux-5322dbf00ad7862272d460d4711401cd4ef5b760.tar.xz |
bgmac: drop duplicated PHY defines
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bgmac.c')
-rw-r--r-- | drivers/net/ethernet/broadcom/bgmac.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/ethernet/broadcom/bgmac.c b/drivers/net/ethernet/broadcom/bgmac.c index b665a6aa7e14..3cd5d68a3d02 100644 --- a/drivers/net/ethernet/broadcom/bgmac.c +++ b/drivers/net/ethernet/broadcom/bgmac.c @@ -725,11 +725,9 @@ static void bgmac_phy_reset(struct bgmac *bgmac) if (bgmac->phyaddr == BGMAC_PHY_NOREGS) return; - bgmac_phy_write(bgmac, bgmac->phyaddr, BGMAC_PHY_CTL, - BGMAC_PHY_CTL_RESET); + bgmac_phy_write(bgmac, bgmac->phyaddr, MII_BMCR, BMCR_RESET); udelay(100); - if (bgmac_phy_read(bgmac, bgmac->phyaddr, BGMAC_PHY_CTL) & - BGMAC_PHY_CTL_RESET) + if (bgmac_phy_read(bgmac, bgmac->phyaddr, MII_BMCR) & BMCR_RESET) bgmac_err(bgmac, "PHY reset failed\n"); bgmac_phy_init(bgmac); } |