]> www.infradead.org Git - users/jedix/linux-maple.git/commit
clk: davinci: Use of_get_available_child_by_name()
authorBiju Das <biju.das.jz@bp.renesas.com>
Thu, 10 Apr 2025 06:20:38 +0000 (07:20 +0100)
committerStephen Boyd <sboyd@kernel.org>
Tue, 6 May 2025 21:46:00 +0000 (14:46 -0700)
commit6064cfaa1ac495af423653cc2749340e131af64d
tree74bc421af58dcf7c29f70fb10f34dd991a71b2de
parent73c46d9a93d071ca69858dea3f569111b03e549e
clk: davinci: Use of_get_available_child_by_name()

Simplify of_davinci_pll_init() by using of_get_available_child_by_name().

While at it, move of_node_put(child) inside the if block to avoid
additional check if of_child is NULL.

Reviewed-by: David Lechner <david@lechnology.com>
Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Link: https://lore.kernel.org/r/20250410062040.6346-1-biju.das.jz@bp.renesas.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/davinci/pll.c