netdev/phy: skip disabled mdio-mux nodes
authorTimur Tabi <timur@freescale.com>
Tue, 14 Aug 2012 13:20:24 +0000 (13:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Aug 2012 09:16:00 +0000 (02:16 -0700)
commit61abcb7b058853900a3092f2c21988a444e3aaea
tree20a8df79dc8cb0de73cacd931bfdba80f1916037
parent3296193d1421c2d6f9e49e181cecfd917f0f5764
netdev/phy: skip disabled mdio-mux nodes

The mdio-mux driver scans all child mdio nodes, without regard to whether
the node is actually used.  Some device trees include all possible
mdio-mux nodes and rely on the boot loader to disable those that are not
present, based on some run-time configuration.  Those nodes need to be
skipped.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio-mux.c