Commit f60b4e0
PCI: apple: Use helper function for_each_child_of_node_scoped()
The for_each_available_child_of_node_scoped() helper provides
a scope-based clean-up functionality to put the device_node
automatically, and as such, there is no need to call of_node_put()
directly.
Thus, use this helper to simplify the code.
Signed-off-by: Zhang Zekun <zhangzekun11@huawei.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/20240831040413.126417-6-zhangzekun11@huawei.com
[kwilczynski: commit log]
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>1 parent 8905f8b commit f60b4e0
1 file changed
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
732 | 732 | | |
733 | 733 | | |
734 | 734 | | |
735 | | - | |
736 | 735 | | |
737 | 736 | | |
738 | 737 | | |
| |||
755 | 754 | | |
756 | 755 | | |
757 | 756 | | |
758 | | - | |
| 757 | + | |
759 | 758 | | |
760 | 759 | | |
761 | 760 | | |
762 | | - | |
763 | 761 | | |
764 | 762 | | |
765 | 763 | | |
| |||
0 commit comments