diff options
Diffstat (limited to 'include/linux/clk-private.h')
-rw-r--r-- | include/linux/clk-private.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/clk-private.h b/include/linux/clk-private.h index 8138c94409f3..efbf70b9fd84 100644 --- a/include/linux/clk-private.h +++ b/include/linux/clk-private.h | |||
@@ -12,6 +12,7 @@ | |||
12 | #define __LINUX_CLK_PRIVATE_H | 12 | #define __LINUX_CLK_PRIVATE_H |
13 | 13 | ||
14 | #include <linux/clk-provider.h> | 14 | #include <linux/clk-provider.h> |
15 | #include <linux/kref.h> | ||
15 | #include <linux/list.h> | 16 | #include <linux/list.h> |
16 | 17 | ||
17 | /* | 18 | /* |
@@ -25,10 +26,13 @@ | |||
25 | 26 | ||
26 | #ifdef CONFIG_COMMON_CLK | 27 | #ifdef CONFIG_COMMON_CLK |
27 | 28 | ||
29 | struct module; | ||
30 | |||
28 | struct clk { | 31 | struct clk { |
29 | const char *name; | 32 | const char *name; |
30 | const struct clk_ops *ops; | 33 | const struct clk_ops *ops; |
31 | struct clk_hw *hw; | 34 | struct clk_hw *hw; |
35 | struct module *owner; | ||
32 | struct clk *parent; | 36 | struct clk *parent; |
33 | const char **parent_names; | 37 | const char **parent_names; |
34 | struct clk **parents; | 38 | struct clk **parents; |
@@ -41,12 +45,14 @@ struct clk { | |||
41 | unsigned long flags; | 45 | unsigned long flags; |
42 | unsigned int enable_count; | 46 | unsigned int enable_count; |
43 | unsigned int prepare_count; | 47 | unsigned int prepare_count; |
48 | unsigned long accuracy; | ||
44 | struct hlist_head children; | 49 | struct hlist_head children; |
45 | struct hlist_node child_node; | 50 | struct hlist_node child_node; |
46 | unsigned int notifier_count; | 51 | unsigned int notifier_count; |
47 | #ifdef CONFIG_COMMON_CLK_DEBUG | 52 | #ifdef CONFIG_DEBUG_FS |
48 | struct dentry *dentry; | 53 | struct dentry *dentry; |
49 | #endif | 54 | #endif |
55 | struct kref ref; | ||
50 | }; | 56 | }; |
51 | 57 | ||
52 | /* | 58 | /* |