Skip to contentSkip to conversation

microblaze: Use of_property_present() for non-boolean properties

PATCH Applied Rob Herring (Arm) 2 participants 2 messages Dec 31, 2024 – Jan 7, 2025 Microblaze architecture

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 microblaze: 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.

---
 arch/microblaze/kernel/timer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/microblaze/kernel/timer.c +1 -1
index 26c385582c3b..ccb4b4b59bca 100644
@@ -252,7 +252,7 @@ static int __init xilinx_timer_init(struct device_node *timer)
 	int ret;
 
 	/* If this property is present, the device is a PWM and not a timer */
-	if (of_property_read_bool(timer, "#pwm-cells"))
+	if (of_property_present(timer, "#pwm-cells"))
 		return 0;
 
 	if (initialized)
Signature · 1 line
2.45.2
maintainer Applied
#1 lore raw

út 31. 12. 2024 v 17:14 odesílatel Rob Herring (Arm) <[email protected]> napsal:

Quoted 24 lines

The use of of_property_read_bool() for non-boolean properties is deprecated in favor of of_property_present() when testing for property presence.

---
 arch/microblaze/kernel/timer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/microblaze/kernel/timer.c +1 -2
index 26c385582c3b..ccb4b4b59bca 100644
@@ -252,7 +252,7 @@ static int __init xilinx_timer_init(struct device_node *timer)
        int ret;
 
        /* If this property is present, the device is a PWM and not a timer */
-       if (of_property_read_bool(timer, "#pwm-cells"))
+       if (of_property_present(timer, "#pwm-cells"))
                return 0;
 
        if (initialized)
--
Quoted 2 lines

2.45.2

Applied.
M

Signature · 5 lines
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Xilinx Microblaze
Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP ARM64 SoCs
U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal SoCs