net: gianfar: correctly determine the number of queue groups
authorTobias Waldekranz <tobias@waldekranz.com>
Thu, 5 Mar 2015 13:48:23 +0000 (14:48 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Mar 2015 03:18:32 +0000 (22:18 -0500)
eTSEC of-nodes may have children which are not queue-group nodes. For
example new-style fixed-phy declarations. These where incorrectly
assumed to be additional queue-groups.

Change the search to filter out any nodes which are not queue-groups,
or have been disabled.

Signed-off-by: Tobias Waldekranz <tobias@waldekranz.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/gianfar.c