提交 3eb415d1 编写于 作者: F Florian Fainelli 提交者: David S. Miller

net: r6040: Utilize phy_print_status

Instead of open coding our own version utilize the library provided
function.
Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 6ebd1a6d
...@@ -1001,14 +1001,8 @@ static void r6040_adjust_link(struct net_device *dev) ...@@ -1001,14 +1001,8 @@ static void r6040_adjust_link(struct net_device *dev)
lp->old_duplex = phydev->duplex; lp->old_duplex = phydev->duplex;
} }
if (status_changed) { if (status_changed)
pr_info("%s: link %s", dev->name, phydev->link ? phy_print_status(phydev);
"UP" : "DOWN");
if (phydev->link)
pr_cont(" - %d/%s", phydev->speed,
DUPLEX_FULL == phydev->duplex ? "full" : "half");
pr_cont("\n");
}
} }
static int r6040_mii_probe(struct net_device *dev) static int r6040_mii_probe(struct net_device *dev)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册