diff options
author | Russell King <rmk+kernel@armlinux.org.uk> | 2017-12-15 16:13:06 +0000 |
---|---|---|
committer | Russell King <rmk+kernel@armlinux.org.uk> | 2020-10-12 21:51:56 +0100 |
commit | 9e3c6c7b3365d9d17a16ee37a74d8ec870038fea (patch) | |
tree | ea866f69e11fe6b01c1fb45e57b38467a27b80c7 | |
parent | a32e90737c1c92653767d3c95c63c16b9b72c6c2 (diff) |
net: dsa: allow init to continue when no phy
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
-rw-r--r-- | net/dsa/slave.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/dsa/slave.c b/net/dsa/slave.c index 16e5f98d4882..6ca829155d57 100644 --- a/net/dsa/slave.c +++ b/net/dsa/slave.c @@ -1660,8 +1660,9 @@ static int dsa_slave_phy_setup(struct net_device *slave_dev) netdev_err(slave_dev, "failed to connect to port %d: %d\n", dp->index, ret); - phylink_destroy(dp->pl); - return ret; + ret = 0; +// phylink_destroy(dp->pl); +// return ret; } } |