irqchip/gic-v3: use for_each_matching_node() macro
Subsystems (2)
PATCH 1/1 irqchip/gic-v3: use for_each_matching_node() macro
Use for_each_matching_node() macro instead of open coding it.
Signed-off-by Qinglang Miao <[email protected]>
--- drivers/irqchip/irq-gic-v3-its-fsl-mc-msi.c | 3 +-- drivers/irqchip/irq-gic-v3-its-pci-msi.c | 3 +-- drivers/irqchip/irq-gic-v3-its-platform-msi.c | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-)
drivers/irqchip/irq-gic-v3-its-fsl-mc-msi.c +1 -2
@@ -147,8 +147,7 @@ static void __init its_fsl_mc_of_msi_init(void) {struct device_node *np; -for (np =of_find_matching_node (NULL , its_device_id); np; - np =of_find_matching_node (np, its_device_id)) { +for_each_matching_node (np, its_device_id) {if (!of_device_is_available (np))continue ;if (!of_property_read_bool (np,"msi-controller" ))
drivers/irqchip/irq-gic-v3-its-pci-msi.c +1 -2
@@ -130,8 +130,7 @@ static int __init its_pci_of_msi_init(void) {struct device_node *np; -for (np =of_find_matching_node (NULL , its_device_id); np; - np =of_find_matching_node (np, its_device_id)) { +for_each_matching_node (np, its_device_id) {if (!of_device_is_available (np))continue ;if (!of_property_read_bool (np,"msi-controller" ))
drivers/irqchip/irq-gic-v3-its-platform-msi.c +1 -2
@@ -143,8 +143,7 @@ static void __init its_pmsi_of_init(void) {struct device_node *np; -for (np =of_find_matching_node (NULL , its_device_id); np; - np =of_find_matching_node (np, its_device_id)) { +for_each_matching_node (np, its_device_id) {if (!of_device_is_available (np))continue ;if (!of_property_read_bool (np,"msi-controller" ))
Signature · 1 line
2.23.0