diff options
author | Stephen Boyd <sboyd@codeaurora.org> | 2017-11-14 19:07:39 +0100 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2017-11-14 19:07:39 +0100 |
commit | 2dd850ef6e1e525a06b4ba111968199a32844177 (patch) | |
tree | ee74051c65cf3dd2ed15446ffd9b4ba74216602f /include | |
parent | Merge branch 'clk-const' into clk-next (diff) | |
parent | clk: qcom: common: Migrate to devm_* APIs for resets and clk providers (diff) | |
download | linux-2dd850ef6e1e525a06b4ba111968199a32844177.tar.xz linux-2dd850ef6e1e525a06b4ba111968199a32844177.zip |
Merge branch 'clk-devm-provider' into clk-next
* clk-devm-provider:
clk: qcom: common: Migrate to devm_* APIs for resets and clk providers
clk: Add devm_of_clk_add_hw_provider()/del_provider() APIs
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/clk-provider.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h index 5100ec1b5d55..ba79d6186133 100644 --- a/include/linux/clk-provider.h +++ b/include/linux/clk-provider.h @@ -815,7 +815,12 @@ int of_clk_add_hw_provider(struct device_node *np, struct clk_hw *(*get)(struct of_phandle_args *clkspec, void *data), void *data); +int devm_of_clk_add_hw_provider(struct device *dev, + struct clk_hw *(*get)(struct of_phandle_args *clkspec, + void *data), + void *data); void of_clk_del_provider(struct device_node *np); +void devm_of_clk_del_provider(struct device *dev); struct clk *of_clk_src_simple_get(struct of_phandle_args *clkspec, void *data); struct clk_hw *of_clk_hw_simple_get(struct of_phandle_args *clkspec, @@ -847,7 +852,15 @@ static inline int of_clk_add_hw_provider(struct device_node *np, { return 0; } +static inline int devm_of_clk_add_hw_provider(struct device *dev, + struct clk_hw *(*get)(struct of_phandle_args *clkspec, + void *data), + void *data) +{ + return 0; +} static inline void of_clk_del_provider(struct device_node *np) {} +static inline void devm_of_clk_del_provider(struct device *dev) {} static inline struct clk *of_clk_src_simple_get( struct of_phandle_args *clkspec, void *data) { |