> @@ -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

Reply via email to