aboutsummaryrefslogtreecommitdiffstats
path: root/arch/microblaze
diff options
context:
space:
mode:
authorRob Herring (Arm) <robh@kernel.org>2024-12-31 10:14:23 -0600
committerMichal Simek <michal.simek@amd.com>2025-02-03 11:29:42 +0100
commit52b70e5b605c38996b74788a140702e69f34d2e1 (patch)
tree647be6a35e549f98836620503197f1fefa84f07a /arch/microblaze
parentLinux 6.14-rc1 (diff)
downloadlinux-rng-52b70e5b605c38996b74788a140702e69f34d2e1.tar.xz
linux-rng-52b70e5b605c38996b74788a140702e69f34d2e1.zip
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. Signed-off-by: Rob Herring (Arm) <robh@kernel.org> Link: https://lore.kernel.org/r/20241231161424.214934-1-robh@kernel.org Signed-off-by: Michal Simek <michal.simek@amd.com>
Diffstat (limited to 'arch/microblaze')
-rw-r--r--arch/microblaze/kernel/timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/microblaze/kernel/timer.c b/arch/microblaze/kernel/timer.c
index 26c385582c3b..ccb4b4b59bca 100644
--- a/arch/microblaze/kernel/timer.c
+++ b/arch/microblaze/kernel/timer.c
@@ -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)