Commit a7b3274
net: mvpp2: use device_for_each_child_node() to access device child nodes
The iterated nodes are direct children of the device node, and the
`device_for_each_child_node()` macro accounts for child node
availability.
`fwnode_for_each_available_child_node()` is meant to access the child
nodes of an fwnode, and therefore not direct child nodes of the device
node.
The child nodes within mvpp2_probe are not accessed outside the loops,
and the scoped version of the macro can be used to automatically
decrement the refcount on early exits.
Use `device_for_each_child_node()` and its scoped variant to indicate
device's direct child nodes.
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent e81d00a commit a7b3274
1 file changed
+2
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7417 | 7417 | | |
7418 | 7418 | | |
7419 | 7419 | | |
7420 | | - | |
7421 | | - | |
7422 | 7420 | | |
7423 | 7421 | | |
7424 | 7422 | | |
| |||
7591 | 7589 | | |
7592 | 7590 | | |
7593 | 7591 | | |
7594 | | - | |
| 7592 | + | |
7595 | 7593 | | |
7596 | 7594 | | |
7597 | 7595 | | |
| |||
7614 | 7612 | | |
7615 | 7613 | | |
7616 | 7614 | | |
7617 | | - | |
| 7615 | + | |
7618 | 7616 | | |
7619 | 7617 | | |
7620 | 7618 | | |
| |||
7653 | 7651 | | |
7654 | 7652 | | |
7655 | 7653 | | |
7656 | | - | |
7657 | | - | |
7658 | 7654 | | |
7659 | 7655 | | |
7660 | 7656 | | |
| |||
0 commit comments