aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/clk-provider.h
diff options
context:
space:
mode:
authorMike Turquette <mturquette@linaro.org>2012-03-26 20:51:03 -0400
committerMike Turquette <mturquette@linaro.org>2012-04-24 19:37:39 -0400
commit27d545915fd49cbe18a3877d82359896e9851efb (patch)
treeca3234eef7925fc068f6f55cd965abe21dfa399c /include/linux/clk-provider.h
parentd1302a36a7f1c33d1a8babc6a510e1401a5e5aed (diff)
clk: basic: improve parent_names & return errors
This patch is the basic clk version of 'clk: core: copy parent_names & return error codes'. The registration functions are changed to allow the core code to copy the array of strings and allow platforms to declare those arrays as __initdata. This patch also converts all of the basic clk registration functions to return error codes which better aligns them with the existing clk.h api. Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'include/linux/clk-provider.h')
-rw-r--r--include/linux/clk-provider.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/linux/clk-provider.h b/include/linux/clk-provider.h
index 97f9fabf3be2..3323d24a7be4 100644
--- a/include/linux/clk-provider.h
+++ b/include/linux/clk-provider.h
@@ -176,7 +176,6 @@ struct clk_gate {
176 u8 bit_idx; 176 u8 bit_idx;
177 u8 flags; 177 u8 flags;
178 spinlock_t *lock; 178 spinlock_t *lock;
179 const char *parent[1];
180}; 179};
181 180
182#define CLK_GATE_SET_TO_DISABLE BIT(0) 181#define CLK_GATE_SET_TO_DISABLE BIT(0)
@@ -214,7 +213,6 @@ struct clk_divider {
214 u8 width; 213 u8 width;
215 u8 flags; 214 u8 flags;
216 spinlock_t *lock; 215 spinlock_t *lock;
217 const char *parent[1];
218}; 216};
219 217
220#define CLK_DIVIDER_ONE_BASED BIT(0) 218#define CLK_DIVIDER_ONE_BASED BIT(0)