diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/dsa/qca8k.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/dsa/qca8k.c b/drivers/net/dsa/qca8k.c index 35ff4cf08786..cc9ab35f8b17 100644 --- a/drivers/net/dsa/qca8k.c +++ b/drivers/net/dsa/qca8k.c @@ -719,6 +719,9 @@ qca8k_setup_mdio_bus(struct qca8k_priv *priv) ports = of_get_child_by_name(priv->dev->of_node, "ports"); if (!ports) + ports = of_get_child_by_name(priv->dev->of_node, "ethernet-ports"); + + if (!ports) return -EINVAL; for_each_available_child_of_node(ports, port) { |