Skip to content

Commit d8549bc

Browse files
Mani-Sadhasivambebarino
authored andcommitted
clk: Add clk_hw_unregister_composite helper function definition
This function has been delcared but not defined anywhere. Hence, this commit adds definition for it. Fixes: 49cb392 ("clk: composite: Add hw based registration APIs") Signed-off-by: Manivannan Sadhasivam <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent cc819cf commit d8549bc

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

drivers/clk/clk-composite.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,3 +343,14 @@ void clk_unregister_composite(struct clk *clk)
343343
clk_unregister(clk);
344344
kfree(composite);
345345
}
346+
347+
void clk_hw_unregister_composite(struct clk_hw *hw)
348+
{
349+
struct clk_composite *composite;
350+
351+
composite = to_clk_composite(hw);
352+
353+
clk_hw_unregister(hw);
354+
kfree(composite);
355+
}
356+
EXPORT_SYMBOL_GPL(clk_hw_unregister_composite);

0 commit comments

Comments
 (0)