From: Rob Herring (Arm) Date: Mon, 4 Nov 2024 19:08:35 +0000 (-0600) Subject: irqchip/stm32mp-exti: Use of_property_present() for non-boolean properties X-Git-Tag: v6.13-rc1~173^2~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=194c4f569eac889d9b0822bc001771683b6e9b8a;p=thirdparty%2Flinux.git 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) Signed-off-by: Thomas Gleixner Reviewed-by: Antonio Borneo Link: https://lore.kernel.org/all/20241104190836.278117-1-robh@kernel.org --- diff --git a/drivers/irqchip/irq-stm32mp-exti.c b/drivers/irqchip/irq-stm32mp-exti.c index 33e0cfdea6545..cb83d6cc6113a 100644 --- a/drivers/irqchip/irq-stm32mp-exti.c +++ b/drivers/irqchip/irq-stm32mp-exti.c @@ -696,8 +696,7 @@ static int stm32mp_exti_probe(struct platform_device *pdev) if (ret) return ret; - if (of_property_read_bool(np, "interrupts-extended")) - host_data->dt_has_irqs_desc = true; + host_data->dt_has_irqs_desc = of_property_present(np, "interrupts-extended"); return 0; }