diff options
Diffstat (limited to 'net/dsa/slave.c')
-rw-r--r-- | net/dsa/slave.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/dsa/slave.c b/net/dsa/slave.c index 68c9eea00518..7d4596110851 100644 --- a/net/dsa/slave.c +++ b/net/dsa/slave.c | |||
@@ -1105,10 +1105,8 @@ static int dsa_slave_phy_connect(struct dsa_slave_priv *p, | |||
1105 | /* Use already configured phy mode */ | 1105 | /* Use already configured phy mode */ |
1106 | if (p->phy_interface == PHY_INTERFACE_MODE_NA) | 1106 | if (p->phy_interface == PHY_INTERFACE_MODE_NA) |
1107 | p->phy_interface = p->phy->interface; | 1107 | p->phy_interface = p->phy->interface; |
1108 | phy_connect_direct(slave_dev, p->phy, dsa_slave_adjust_link, | 1108 | return phy_connect_direct(slave_dev, p->phy, dsa_slave_adjust_link, |
1109 | p->phy_interface); | 1109 | p->phy_interface); |
1110 | |||
1111 | return 0; | ||
1112 | } | 1110 | } |
1113 | 1111 | ||
1114 | static int dsa_slave_phy_setup(struct dsa_slave_priv *p, | 1112 | static int dsa_slave_phy_setup(struct dsa_slave_priv *p, |
@@ -1203,6 +1201,8 @@ int dsa_slave_suspend(struct net_device *slave_dev) | |||
1203 | { | 1201 | { |
1204 | struct dsa_slave_priv *p = netdev_priv(slave_dev); | 1202 | struct dsa_slave_priv *p = netdev_priv(slave_dev); |
1205 | 1203 | ||
1204 | netif_device_detach(slave_dev); | ||
1205 | |||
1206 | if (p->phy) { | 1206 | if (p->phy) { |
1207 | phy_stop(p->phy); | 1207 | phy_stop(p->phy); |
1208 | p->old_pause = -1; | 1208 | p->old_pause = -1; |