Loading net/dsa/dsa2.c +6 −2 Original line number Diff line number Diff line Loading @@ -726,10 +726,14 @@ static int dsa_switch_parse_ports_of(struct dsa_switch *ds, u32 reg; ports = of_get_child_by_name(dn, "ports"); if (!ports) { /* The second possibility is "ethernet-ports" */ ports = of_get_child_by_name(dn, "ethernet-ports"); if (!ports) { dev_err(ds->dev, "no ports child node found\n"); return -EINVAL; } } for_each_available_child_of_node(ports, port) { err = of_property_read_u32(port, "reg", ®); Loading Loading
net/dsa/dsa2.c +6 −2 Original line number Diff line number Diff line Loading @@ -726,10 +726,14 @@ static int dsa_switch_parse_ports_of(struct dsa_switch *ds, u32 reg; ports = of_get_child_by_name(dn, "ports"); if (!ports) { /* The second possibility is "ethernet-ports" */ ports = of_get_child_by_name(dn, "ethernet-ports"); if (!ports) { dev_err(ds->dev, "no ports child node found\n"); return -EINVAL; } } for_each_available_child_of_node(ports, port) { err = of_property_read_u32(port, "reg", ®); Loading