aboutsummaryrefslogtreecommitdiffstats
path: root/net/dsa/slave.c
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2016-01-06 14:11:13 -0500
committerDavid S. Miller <davem@davemloft.net>2016-01-07 14:31:25 -0500
commit2220943a21e26d97d7fd8f83c004b947326b469d (patch)
tree946d1428fce5312b0537137411784c8b0c41c222 /net/dsa/slave.c
parent053e7e169229adebbc27fc176c5369398e9f5eba (diff)
phy: Centralise print about attached phy
Many Ethernet drivers contain the same netdev_info() print statement about the attached phy. Move it into the phy device code. Additionally add a varargs function which can be used to append additional information. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/slave.c')
-rw-r--r--net/dsa/slave.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/dsa/slave.c b/net/dsa/slave.c
index 1e9e9424a33d..5f45e68b52dc 100644
--- a/net/dsa/slave.c
+++ b/net/dsa/slave.c
@@ -1080,11 +1080,10 @@ static int dsa_slave_phy_setup(struct dsa_slave_priv *p,
1080 netdev_err(slave_dev, "failed to connect to port %d: %d\n", p->port, ret); 1080 netdev_err(slave_dev, "failed to connect to port %d: %d\n", p->port, ret);
1081 return ret; 1081 return ret;
1082 } 1082 }
1083 } else {
1084 netdev_info(slave_dev, "attached PHY at address %d [%s]\n",
1085 p->phy->addr, p->phy->drv->name);
1086 } 1083 }
1087 1084
1085 phy_attached_info(p->phy);
1086
1088 return 0; 1087 return 0;
1089} 1088}
1090 1089