Thread (35 messages) flat view 35 messages, 3 authors, 2016-06-06

Re: [PATCH net-next 2/9] net: dsa: Add support for parsing the old binding

From: Andrew Lunn <andrew@lunn.ch>
Date: 2016-06-04 19:44:22

quoted hunk ↗ jump to hunk
@@ -626,8 +736,8 @@ static int _dsa_register_switch(struct dsa_switch *ds, struct device_node *np)
 {
 	struct device_node *ports = dsa_get_ports(ds, np);
 
-	if (IS_ERR(ports))
-		return PTR_ERR(ports);
+	if (IS_ERR(ports) && PTR_ERR(ports) == -EINVAL)
+		return _dsa_register_switch_legacy(ds, np);
 
 	return __dsa_register_switch(ds, np);
 }
Hi Florian

Could you put this into dsa_register_switch() and so avoid all the __
prefixes.

Thanks
	Andrew
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help