clk: add terminate callback to clk_ops
Add a terminate callback to the clk_ops to release the resources claimed in .init() Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> Link: https://lkml.kernel.org/r/20190924123954.31561-4-jbrunet@baylibre.com Signed-off-by: Stephen Boyd <sboyd@kernel.org>
This commit is contained in:

committed by
Stephen Boyd

parent
89d079dc17
commit
f873744c29
@@ -197,6 +197,8 @@ struct clk_duty {
|
||||
* such as rate or parents.
|
||||
* Returns 0 on success, -EERROR otherwise.
|
||||
*
|
||||
* @terminate: Free any resource allocated by init.
|
||||
*
|
||||
* @debug_init: Set up type-specific debugfs entries for this clock. This
|
||||
* is called once, after the debugfs directory entry for this
|
||||
* clock has been created. The dentry pointer representing that
|
||||
@@ -248,6 +250,7 @@ struct clk_ops {
|
||||
int (*set_duty_cycle)(struct clk_hw *hw,
|
||||
struct clk_duty *duty);
|
||||
int (*init)(struct clk_hw *hw);
|
||||
void (*terminate)(struct clk_hw *hw);
|
||||
void (*debug_init)(struct clk_hw *hw, struct dentry *dentry);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user