diff options
author | Ben Hutchings <ben.hutchings@codethink.co.uk> | 2016-06-21 00:16:31 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-23 19:12:20 (GMT) |
commit | 8658aaf2539795e0b58fe101ae61d989f81700ff (patch) | |
tree | 658bce06a2907b7c7558f28a751e108ee424d3af /drivers | |
parent | b95e5928fcc76d156352570858abdea7b2628efd (diff) | |
download | linux-8658aaf2539795e0b58fe101ae61d989f81700ff.tar.xz |
ti_cpsw: Check for disabled child nodes
Dual MAC devices don't necessarily have both MACs wired up, so ignore
those that are disabled.
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/ti/cpsw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 8327328..9c924f1 100644 --- a/drivers/net/ethernet/ti/cpsw.c +++ b/drivers/net/ethernet/ti/cpsw.c @@ -2014,7 +2014,7 @@ static int cpsw_probe_dt(struct cpsw_platform_data *data, if (ret) dev_warn(&pdev->dev, "Doesn't have any child node\n"); - for_each_child_of_node(node, slave_node) { + for_each_available_child_of_node(node, slave_node) { struct cpsw_slave_data *slave_data = data->slave_data + i; const void *mac_addr = NULL; int lenp; |