summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2017-12-15 16:13:06 +0000
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2024-04-16 16:52:24 +0100
commit7ce0b3426710c3b8b0aca7b830b9bed43978823b (patch)
treeed4c9eaec063ddd342d107067b031f1d6aa39c90
parentcc34099db06c0d4cff7098141427edb2e7f2f519 (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/user.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/dsa/user.c b/net/dsa/user.c
index a0ee4d338d1f..bf523ebc6e61 100644
--- a/net/dsa/user.c
+++ b/net/dsa/user.c
@@ -2519,7 +2519,8 @@ static int dsa_user_phy_setup(struct net_device *user_dev)
if (ret) {
netdev_err(user_dev, "failed to connect to PHY: %pe\n",
ERR_PTR(ret));
- dsa_port_phylink_destroy(dp);
+// dsa_port_phylink_destroy(dp);
+ ret = 0;
}
return ret;