]> git.baikalelectronics.ru Git - kernel.git/commit
dsa: correctly determine the number of switches in a system
authorTobias Waldekranz <tobias@waldekranz.com>
Thu, 5 Feb 2015 13:54:09 +0000 (14:54 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sun, 8 Feb 2015 06:07:37 +0000 (22:07 -0800)
commite53f7b134e081fe0ef3849a216c3ec30a5ae8ba1
tree09092393163b21a8f41f5dda29d7b9a9e082515f
parent64ee03ff4260b5ce0d8224038a0af168abdab1ab
dsa: correctly determine the number of switches in a system

The number of connected switches was sourced from the number of
children to the DSA node, change it to the number of available
children, skipping any disabled switches.

Fixes: fab19bfb3f33a ("dsa: add device tree bindings to register DSA switches")
Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/dsa.c