mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
clk: Add common __clk_get(), __clk_put() implementations
This patch adds common __clk_get(), __clk_put() clkdev helpers that replace their platform specific counterparts when the common clock API is used. The owner module pointer field is added to struct clk so a reference to the clock supplier module can be taken by the clock consumers. The owner module is assigned while the clock is being registered, in functions _clk_register() and __clk_register(). Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
3a3d2b0551
commit
ac2df527fb
7 changed files with 42 additions and 0 deletions
|
@ -25,10 +25,13 @@
|
|||
|
||||
#ifdef CONFIG_COMMON_CLK
|
||||
|
||||
struct module;
|
||||
|
||||
struct clk {
|
||||
const char *name;
|
||||
const struct clk_ops *ops;
|
||||
struct clk_hw *hw;
|
||||
struct module *owner;
|
||||
struct clk *parent;
|
||||
const char **parent_names;
|
||||
struct clk **parents;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue