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>
This commit is contained in:
committed by
Michal Simek
parent
2014c95afe
commit
52b70e5b60
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user