diff options
author | Timur Tabi <timur@freescale.com> | 2012-08-14 17:20:24 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-08-20 13:16:00 +0400 |
commit | 61abcb7b058853900a3092f2c21988a444e3aaea (patch) | |
tree | 20a8df79dc8cb0de73cacd931bfdba80f1916037 /drivers/net/phy/mdio-mux.c | |
parent | 3296193d1421c2d6f9e49e181cecfd917f0f5764 (diff) | |
download | linux-61abcb7b058853900a3092f2c21988a444e3aaea.tar.xz |
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>
Diffstat (limited to 'drivers/net/phy/mdio-mux.c')
-rw-r--r-- | drivers/net/phy/mdio-mux.c | 2 |
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); |