ti_cpsw: Check for disabled child nodes
Subsystems (3)
PATCH 1/1 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 <[email protected]>
---
drivers/net/ethernet/ti/cpsw.c +1 -1
@@ -2023,7 +2023,7 @@ static int cpsw_probe_dt(struct cpsw_priif (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;
Signature · 2 lines
Ben Hutchings Software Developer, Codethink Ltd.
From: Ben Hutchings <[email protected]>
Date: Tue, 21 Jun 2016 01:16:31 +0100
Quoted 4 lines
Dual MAC devices don't necessarily have both MACs wired up, so ignore those that are disabled.
Signed-off-by Ben Hutchings <[email protected]>
Applied.