Skip to content

Commit 52b70e5

Browse files
robherringmichalsimek
authored andcommitted
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) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Michal Simek <[email protected]>
1 parent 2014c95 commit 52b70e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/microblaze/kernel/timer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ static int __init xilinx_timer_init(struct device_node *timer)
252252
int ret;
253253

254254
/* If this property is present, the device is a PWM and not a timer */
255-
if (of_property_read_bool(timer, "#pwm-cells"))
255+
if (of_property_present(timer, "#pwm-cells"))
256256
return 0;
257257

258258
if (initialized)

0 commit comments

Comments
 (0)