Skip to content

Commit f3ea14c

Browse files
Yang Yinglianggeertu
authored andcommitted
clk: renesas: r9a06g032: Use for_each_compatible_node()
Use for_each_compatible_node() instead of open-coding it. Signed-off-by: Yang Yingliang <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Geert Uytterhoeven <[email protected]>
1 parent 0bb80ec commit f3ea14c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

drivers/clk/renesas/r9a06g032-clocks.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,11 +1269,10 @@ static void r9a06g032_clocks_del_clk_provider(void *data)
12691269

12701270
static void __init r9a06g032_init_h2mode(struct r9a06g032_priv *clocks)
12711271
{
1272-
struct device_node *usbf_np = NULL;
1272+
struct device_node *usbf_np;
12731273
u32 usb;
12741274

1275-
while ((usbf_np = of_find_compatible_node(usbf_np, NULL,
1276-
"renesas,rzn1-usbf"))) {
1275+
for_each_compatible_node(usbf_np, NULL, "renesas,rzn1-usbf") {
12771276
if (of_device_is_available(usbf_np))
12781277
break;
12791278
}

0 commit comments

Comments
 (0)