net: r6040: Utilize phy_print_status
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 4 Jul 2016 21:36:01 +0000 (14:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Jul 2016 07:10:28 +0000 (00:10 -0700)
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>
drivers/net/ethernet/rdc/r6040.c

index 7a7a395d0512fdd958ee67575a37e54ede59307c..12fc7cd67fa7399046532c5a01b4e75bb12643d2 100644 (file)
@@ -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)