Skip to content

Commit 194c4f5

Browse files
robherringKAGA-KOKO
authored andcommitted
irqchip/stm32mp-exti: Use of_property_present() for non-boolean properties
The use of of_property_read_bool() for non-boolean properties is deprecated in favor of of_property_present() when testing for property presence. Signed-off-by: Rob Herring (Arm) <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Antonio Borneo <[email protected]> Link: https://lore.kernel.org/all/[email protected]
1 parent 0053892 commit 194c4f5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/irqchip/irq-stm32mp-exti.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -696,8 +696,7 @@ static int stm32mp_exti_probe(struct platform_device *pdev)
696696
if (ret)
697697
return ret;
698698

699-
if (of_property_read_bool(np, "interrupts-extended"))
700-
host_data->dt_has_irqs_desc = true;
699+
host_data->dt_has_irqs_desc = of_property_present(np, "interrupts-extended");
701700

702701
return 0;
703702
}

0 commit comments

Comments
 (0)