summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJerome Brunet <jbrunet@baylibre.com>2019-09-24 14:39:54 +0200
committerStephen Boyd <sboyd@kernel.org>2019-12-23 18:53:13 -0800
commitf873744c29036cc734ec8ecbedd1a451ce61cef2 (patch)
tree7ed67a94fa3651939b423674fc55b08b17c4aafc /include
parent89d079dc17e8a32397de827cc85c1f4911b90424 (diff)
downloadlinux-stable-f873744c29036cc734ec8ecbedd1a451ce61cef2.tar.gz
linux-stable-f873744c29036cc734ec8ecbedd1a451ce61cef2.tar.bz2
linux-stable-f873744c29036cc734ec8ecbedd1a451ce61cef2.zip
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>
Diffstat (limited to 'include')
-rw-r--r--include/linux/clk-provider.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h
index eed243c2c73e..013dc667a500 100644
--- a/include/linux/clk-provider.h
+++ b/include/linux/clk-provider.h
@@ -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);
};