Re: [PATCH net-next 09/17] net: dsa: Split up creating/destroying of DSA and CPU ports

2016-06-03 Thread Florian Fainelli
On 06/03/2016 09:44 AM, Andrew Lunn wrote: > Refactor the code to setup a single DSA/CPU port into a function of > its own, and export it, so it can be used by the new binding. > > Similarly, refactor the destroy code into a function. When destroying > the ports, don't put the of node. They

Re: [PATCH net-next 09/17] net: dsa: Split up creating/destroying of DSA and CPU ports

2016-06-03 Thread Vivien Didelot
Andrew Lunn writes: > Refactor the code to setup a single DSA/CPU port into a function of > its own, and export it, so it can be used by the new binding. > > Similarly, refactor the destroy code into a function. When destroying > the ports, don't put the of node. They should be

[PATCH net-next 09/17] net: dsa: Split up creating/destroying of DSA and CPU ports

2016-06-03 Thread Andrew Lunn
Refactor the code to setup a single DSA/CPU port into a function of its own, and export it, so it can be used by the new binding. Similarly, refactor the destroy code into a function. When destroying the ports, don't put the of node. They should be released at the end along with the normal