summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimur Tabi <timur@freescale.com>2012-08-14 13:20:24 +0000
committerDavid S. Miller <davem@davemloft.net>2012-08-20 02:16:00 -0700
commit61abcb7b058853900a3092f2c21988a444e3aaea (patch)
tree20a8df79dc8cb0de73cacd931bfdba80f1916037
parent3296193d1421c2d6f9e49e181cecfd917f0f5764 (diff)
downloadlinux-61abcb7b058853900a3092f2c21988a444e3aaea.tar.gz
linux-61abcb7b058853900a3092f2c21988a444e3aaea.tar.bz2
linux-61abcb7b058853900a3092f2c21988a444e3aaea.zip
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>
-rw-r--r--drivers/net/phy/mdio-mux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/phy/mdio-mux.c b/drivers/net/phy/mdio-mux.c
index 5c120189ec86..4d4d25efc1e1 100644
--- a/drivers/net/phy/mdio-mux.c
+++ b/drivers/net/phy/mdio-mux.c
@@ -132,7 +132,7 @@ int mdio_mux_init(struct device *dev,
pb->mii_bus = parent_bus;
ret_val = -ENODEV;
- for_each_child_of_node(dev->of_node, child_bus_node) {
+ for_each_available_child_of_node(dev->of_node, child_bus_node) {
u32 v;
r = of_property_read_u32(child_bus_node, "reg", &v);