Skip to content

Commit 1054861

Browse files
robherringwens
authored andcommitted
clk: sunxi-ng: 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://patch.msgid.link/20241104190455.272527-1-robh@kernel.org Signed-off-by: Chen-Yu Tsai <wens@csie.org>
1 parent e0f253a commit 1054861

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/sunxi-ng/ccu-sun6i-rtc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ int sun6i_rtc_ccu_probe(struct device *dev, void __iomem *reg)
356356
const char *fw_name;
357357

358358
/* ext-osc32k was the only input clock in the old binding. */
359-
fw_name = of_property_read_bool(dev->of_node, "clock-names")
359+
fw_name = of_property_present(dev->of_node, "clock-names")
360360
? "ext-osc32k" : NULL;
361361
ext_osc32k_clk = devm_clk_get_optional(dev, fw_name);
362362
if (IS_ERR(ext_osc32k_clk))

0 commit comments

Comments
 (0)