diff options
author | Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com> | 2018-12-07 06:09:39 -0500 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2019-02-06 13:35:02 -0500 |
commit | 3eee6c7d119cd8563ad25898f94d6c1b514da548 (patch) | |
tree | a78d21a7c0f1ba47021cec1f0730f14036568166 /include/linux/clkdev.h | |
parent | bfeffd155283772bbe78c6a05dec7c0128ee500c (diff) |
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.h | 4 |
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 *); | |||
52 | int clk_register_clkdev(struct clk *, const char *, const char *); | 52 | int clk_register_clkdev(struct clk *, const char *, const char *); |
53 | int clk_hw_register_clkdev(struct clk_hw *, const char *, const char *); | 53 | int clk_hw_register_clkdev(struct clk_hw *, const char *, const char *); |
54 | 54 | ||
55 | int devm_clk_hw_register_clkdev(struct device *dev, struct clk_hw *hw, | ||
56 | const char *con_id, const char *dev_id); | ||
57 | void devm_clk_release_clkdev(struct device *dev, const char *con_id, | ||
58 | const char *dev_id); | ||
55 | #endif | 59 | #endif |