diff options
author | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2013-08-24 14:10:41 -0400 |
---|---|---|
committer | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2013-12-04 11:19:44 -0500 |
commit | ac2df527fb407b61f9c812a99035b62a75a77d6d (patch) | |
tree | 87b9b90703c654b5359749bd48eb87bb5dd0b118 /include/linux/clk-private.h | |
parent | 3a3d2b0551d79ef476ef57424beeb8f68789fbcd (diff) |
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>
Diffstat (limited to 'include/linux/clk-private.h')
-rw-r--r-- | include/linux/clk-private.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/clk-private.h b/include/linux/clk-private.h index 8138c94409f3..8cb1865e7d9d 100644 --- a/include/linux/clk-private.h +++ b/include/linux/clk-private.h | |||
@@ -25,10 +25,13 @@ | |||
25 | 25 | ||
26 | #ifdef CONFIG_COMMON_CLK | 26 | #ifdef CONFIG_COMMON_CLK |
27 | 27 | ||
28 | struct module; | ||
29 | |||
28 | struct clk { | 30 | struct clk { |
29 | const char *name; | 31 | const char *name; |
30 | const struct clk_ops *ops; | 32 | const struct clk_ops *ops; |
31 | struct clk_hw *hw; | 33 | struct clk_hw *hw; |
34 | struct module *owner; | ||
32 | struct clk *parent; | 35 | struct clk *parent; |
33 | const char **parent_names; | 36 | const char **parent_names; |
34 | struct clk **parents; | 37 | struct clk **parents; |