Commit b8704eef authored by Zhang Zekun's avatar Zhang Zekun Committed by Greg Kroah-Hartman
Browse files

PCI: apple: Use helper function for_each_child_of_node_scoped()



[ Upstream commit f60b4e06 ]

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: default avatarZhang Zekun <zhangzekun11@huawei.com>
Reviewed-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: default avatarManivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/20240831040413.126417-6-zhangzekun11@huawei.com


[kwilczynski: commit log]
Signed-off-by: default avatarKrzysztof Wilczyński <kwilczynski@kernel.org>
Stable-dep-of: 751bec08 ("PCI: apple: Set only available ports up")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent df1d7e87
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment