Commit 52b70e5b authored by Rob Herring (Arm)'s avatar Rob Herring (Arm) Committed by Michal Simek
Browse files

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: default avatarRob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20241231161424.214934-1-robh@kernel.org


Signed-off-by: default avatarMichal Simek <michal.simek@amd.com>
parent 2014c95a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)