summaryrefslogtreecommitdiff
path: root/include/linux/clkdev.h
diff options
context:
space:
mode:
authorMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>2018-12-07 14:09:39 +0300
committerStephen Boyd <sboyd@kernel.org>2019-02-06 21:35:02 +0300
commit3eee6c7d119cd8563ad25898f94d6c1b514da548 (patch)
treea78d21a7c0f1ba47021cec1f0730f14036568166 /include/linux/clkdev.h
parentbfeffd155283772bbe78c6a05dec7c0128ee500c (diff)
downloadlinux-3eee6c7d119cd8563ad25898f94d6c1b514da548.tar.xz
clkdev: add managed clkdev lookup registration
Clkdev registration lacks of managed registration functions and it seems few drivers do not drop clkdev lookups at exit. Add devm_clk_hw_register_clkdev and devm_clk_release_clkdev to ease lookup releasing at exit. Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'include/linux/clkdev.h')
-rw-r--r--include/linux/clkdev.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/clkdev.h b/include/linux/clkdev.h
index 4890ff033220..ccb32af5848b 100644
--- a/include/linux/clkdev.h
+++ b/include/linux/clkdev.h
@@ -52,4 +52,8 @@ int clk_add_alias(const char *, const char *, const char *, struct device *);
int clk_register_clkdev(struct clk *, const char *, const char *);
int clk_hw_register_clkdev(struct clk_hw *, const char *, const char *);
+int devm_clk_hw_register_clkdev(struct device *dev, struct clk_hw *hw,
+ const char *con_id, const char *dev_id);
+void devm_clk_release_clkdev(struct device *dev, const char *con_id,
+ const char *dev_id);
#endif