]> www.infradead.org Git - users/willy/pagecache.git/commitdiff
microblaze: Use of_property_present() for non-boolean properties
authorRob Herring (Arm) <robh@kernel.org>
Tue, 31 Dec 2024 16:14:23 +0000 (10:14 -0600)
committerMichal Simek <michal.simek@amd.com>
Tue, 7 Jan 2025 16:12:35 +0000 (17:12 +0100)
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>
arch/microblaze/kernel/timer.c

index 26c385582c3bbca319698a73de29d8b633f61b0f..ccb4b4b59bca128a060e18e7ca1d3c4fa9448d2f 100644 (file)
@@ -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)