diff options
Diffstat (limited to 'net/dsa')
-rw-r--r-- | net/dsa/slave.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/dsa/slave.c b/net/dsa/slave.c index 528380a3e296..da64ba9d825d 100644 --- a/net/dsa/slave.c +++ b/net/dsa/slave.c | |||
@@ -555,6 +555,9 @@ static void dsa_slave_phy_setup(struct dsa_slave_priv *p, | |||
555 | */ | 555 | */ |
556 | if (!p->phy) { | 556 | if (!p->phy) { |
557 | p->phy = ds->slave_mii_bus->phy_map[p->port]; | 557 | p->phy = ds->slave_mii_bus->phy_map[p->port]; |
558 | if (!p->phy) | ||
559 | return; | ||
560 | |||
558 | phy_connect_direct(slave_dev, p->phy, dsa_slave_adjust_link, | 561 | phy_connect_direct(slave_dev, p->phy, dsa_slave_adjust_link, |
559 | p->phy_interface); | 562 | p->phy_interface); |
560 | } else { | 563 | } else { |