mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-05 06:05:06 +00:00
net: r6040: Utilize phy_print_status
Instead of open coding our own version utilize the library provided function. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
6ebd1a6d74
commit
3eb415d1af
1 changed files with 2 additions and 8 deletions
|
@ -1001,14 +1001,8 @@ static void r6040_adjust_link(struct net_device *dev)
|
|||
lp->old_duplex = phydev->duplex;
|
||||
}
|
||||
|
||||
if (status_changed) {
|
||||
pr_info("%s: link %s", dev->name, phydev->link ?
|
||||
"UP" : "DOWN");
|
||||
if (phydev->link)
|
||||
pr_cont(" - %d/%s", phydev->speed,
|
||||
DUPLEX_FULL == phydev->duplex ? "full" : "half");
|
||||
pr_cont("\n");
|
||||
}
|
||||
if (status_changed)
|
||||
phy_print_status(phydev);
|
||||
}
|
||||
|
||||
static int r6040_mii_probe(struct net_device *dev)
|
||||
|
|
Loading…
Add table
Reference in a new issue