diff options
author | Rob Herring (Arm) <robh@kernel.org> | 2024-11-04 13:08:35 -0600 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2024-11-07 00:23:59 +0100 |
commit | 194c4f569eac889d9b0822bc001771683b6e9b8a (patch) | |
tree | 2d279ba48514a149750d4a4c75fc7016d741afcf /drivers/irqchip | |
parent | 0053892ff7d4bab5efdb4def0fd211ec36e26f69 (diff) | |
download | lwn-194c4f569eac889d9b0822bc001771683b6e9b8a.tar.gz lwn-194c4f569eac889d9b0822bc001771683b6e9b8a.zip |
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) <robh@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Antonio Borneo <antonio.borneo@foss.st.com>
Link: https://lore.kernel.org/all/20241104190836.278117-1-robh@kernel.org
Diffstat (limited to 'drivers/irqchip')
-rw-r--r-- | drivers/irqchip/irq-stm32mp-exti.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/irqchip/irq-stm32mp-exti.c b/drivers/irqchip/irq-stm32mp-exti.c index 33e0cfdea654..cb83d6cc6113 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; } |