diff options
Diffstat (limited to 'include/linux/clk.h')
-rw-r--r-- | include/linux/clk.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/include/linux/clk.h b/include/linux/clk.h index 834179f3fa72..123c02788807 100644 --- a/include/linux/clk.h +++ b/include/linux/clk.h | |||
@@ -20,8 +20,6 @@ struct device; | |||
20 | 20 | ||
21 | struct clk; | 21 | struct clk; |
22 | 22 | ||
23 | #ifdef CONFIG_COMMON_CLK | ||
24 | |||
25 | /** | 23 | /** |
26 | * DOC: clk notifier callback types | 24 | * DOC: clk notifier callback types |
27 | * | 25 | * |
@@ -78,6 +76,8 @@ struct clk_notifier_data { | |||
78 | unsigned long new_rate; | 76 | unsigned long new_rate; |
79 | }; | 77 | }; |
80 | 78 | ||
79 | #ifdef CONFIG_COMMON_CLK | ||
80 | |||
81 | /** | 81 | /** |
82 | * clk_notifier_register: register a clock rate-change notifier callback | 82 | * clk_notifier_register: register a clock rate-change notifier callback |
83 | * @clk: clock whose rate we are interested in | 83 | * @clk: clock whose rate we are interested in |
@@ -140,6 +140,18 @@ bool clk_is_match(const struct clk *p, const struct clk *q); | |||
140 | 140 | ||
141 | #else | 141 | #else |
142 | 142 | ||
143 | static inline int clk_notifier_register(struct clk *clk, | ||
144 | struct notifier_block *nb) | ||
145 | { | ||
146 | return -ENOTSUPP; | ||
147 | } | ||
148 | |||
149 | static inline int clk_notifier_unregister(struct clk *clk, | ||
150 | struct notifier_block *nb) | ||
151 | { | ||
152 | return -ENOTSUPP; | ||
153 | } | ||
154 | |||
143 | static inline long clk_get_accuracy(struct clk *clk) | 155 | static inline long clk_get_accuracy(struct clk *clk) |
144 | { | 156 | { |
145 | return -ENOTSUPP; | 157 | return -ENOTSUPP; |