mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-23 22:25:40 +08:00
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: 49cb392d36
("clk: composite: Add hw based registration APIs")
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lkml.kernel.org/r/20191115162901.17456-3-manivannan.sadhasivam@linaro.org
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
This commit is contained in:
parent
cc819cf8d4
commit
d8549bcd05
@ -343,3 +343,14 @@ void clk_unregister_composite(struct clk *clk)
|
||||
clk_unregister(clk);
|
||||
kfree(composite);
|
||||
}
|
||||
|
||||
void clk_hw_unregister_composite(struct clk_hw *hw)
|
||||
{
|
||||
struct clk_composite *composite;
|
||||
|
||||
composite = to_clk_composite(hw);
|
||||
|
||||
clk_hw_unregister(hw);
|
||||
kfree(composite);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(clk_hw_unregister_composite);
|
||||
|
Loading…
Reference in New Issue
Block a user