]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ata: libahci_platform: Simplify code with for_each_child_of_node_scoped()
authorZhang Zekun <zhangzekun11@huawei.com>
Sat, 10 Aug 2024 02:34:26 +0000 (10:34 +0800)
committerNiklas Cassel <cassel@kernel.org>
Thu, 15 Aug 2024 11:30:06 +0000 (13:30 +0200)
commitaa3ca1faf3222af7aaa194a910995820135fc54e
tree736f7b7fee07851b4a98b84280ef963ddc9df6d2
parent6773e058ae5a9eaebe0a62a2c1b8fceb190ece82
ata: libahci_platform: Simplify code with for_each_child_of_node_scoped()

for_each_child_of_node_scoped() can put the device_node automatically.
So let's use it to make the code simpler by avoiding the need to
explicitly call of_node_put().

Signed-off-by: Zhang Zekun <zhangzekun11@huawei.com>
Link: https://lore.kernel.org/r/20240810023426.110624-1-zhangzekun11@huawei.com
Signed-off-by: Niklas Cassel <cassel@kernel.org>
drivers/ata/libahci_platform.c