Skip to content

Commit a319885

Browse files
robherringclaudiubeznea
authored andcommitted
clk: microchip: Use of_property_read_bool() for boolean properties
It is preferred to use typed property access functions (i.e. of_property_read_<type> functions) rather than low-level of_get_property/of_find_property functions for reading properties. Convert reading boolean properties to to of_property_read_bool(). Signed-off-by: Rob Herring <[email protected]> Signed-off-by: Claudiu Beznea <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent f3e788d commit a319885

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/clk/microchip/clk-pic32mzda.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ static int pic32mzda_clk_probe(struct platform_device *pdev)
184184
clks[UPLLCLK] = clk_register_fixed_rate(&pdev->dev, "usbphy_clk", NULL,
185185
0, 24000000);
186186
/* fixed rate (optional) clock */
187-
if (of_find_property(np, "microchip,pic32mzda-sosc", NULL)) {
187+
if (of_property_read_bool(np, "microchip,pic32mzda-sosc")) {
188188
pr_info("pic32-clk: dt requests SOSC.\n");
189189
clks[SOSCCLK] = pic32_sosc_clk_register(&sosc_clk, core);
190190
}

0 commit comments

Comments
 (0)