diff options
Diffstat (limited to 'arch/arm/common/clkdev.c')
-rw-r--r-- | arch/arm/common/clkdev.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/arm/common/clkdev.c b/arch/arm/common/clkdev.c index aae5bc01acc8..6416d5b5020d 100644 --- a/arch/arm/common/clkdev.c +++ b/arch/arm/common/clkdev.c | |||
@@ -32,7 +32,7 @@ static DEFINE_MUTEX(clocks_mutex); | |||
32 | * If an entry has a device ID, it must match | 32 | * If an entry has a device ID, it must match |
33 | * If an entry has a connection ID, it must match | 33 | * If an entry has a connection ID, it must match |
34 | * Then we take the most specific entry - with the following | 34 | * Then we take the most specific entry - with the following |
35 | * order of precidence: dev+con > dev only > con only. | 35 | * order of precedence: dev+con > dev only > con only. |
36 | */ | 36 | */ |
37 | static struct clk *clk_find(const char *dev_id, const char *con_id) | 37 | static struct clk *clk_find(const char *dev_id, const char *con_id) |
38 | { | 38 | { |
@@ -99,6 +99,16 @@ void clkdev_add(struct clk_lookup *cl) | |||
99 | } | 99 | } |
100 | EXPORT_SYMBOL(clkdev_add); | 100 | EXPORT_SYMBOL(clkdev_add); |
101 | 101 | ||
102 | void __init clkdev_add_table(struct clk_lookup *cl, size_t num) | ||
103 | { | ||
104 | mutex_lock(&clocks_mutex); | ||
105 | while (num--) { | ||
106 | list_add_tail(&cl->node, &clocks); | ||
107 | cl++; | ||
108 | } | ||
109 | mutex_unlock(&clocks_mutex); | ||
110 | } | ||
111 | |||
102 | #define MAX_DEV_ID 20 | 112 | #define MAX_DEV_ID 20 |
103 | #define MAX_CON_ID 16 | 113 | #define MAX_CON_ID 16 |
104 | 114 | ||