From: Florian Fainelli Date: Mon, 4 Jul 2016 21:36:01 +0000 (-0700) Subject: net: r6040: Utilize phy_print_status X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3eb415d1afd0ec22d2cba33877da036f83098105;p=openwrt%2Fstaging%2Fblogic.git net: r6040: Utilize phy_print_status Instead of open coding our own version utilize the library provided function. Signed-off-by: Florian Fainelli Signed-off-by: David S. Miller --- diff --git a/drivers/net/ethernet/rdc/r6040.c b/drivers/net/ethernet/rdc/r6040.c index 7a7a395d0512..12fc7cd67fa7 100644 --- a/drivers/net/ethernet/rdc/r6040.c +++ b/drivers/net/ethernet/rdc/r6040.c @@ -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)