summaryrefslogtreecommitdiffstats
path: root/drivers/clk/clk.c
diff options
context:
space:
mode:
authorTero Kristo2013-10-22 10:39:36 +0200
committerMike Turquette2014-01-17 21:34:52 +0100
commit819b4861c18d602463cfe815041d11fd81002654 (patch)
treeb9b83374a962896f3d3903dc16345a9dfa53ecca /drivers/clk/clk.c
parentCLK: TI: add DT alias clock registration mechanism (diff)
downloadkernel-qcow2-linux-819b4861c18d602463cfe815041d11fd81002654.tar.gz
kernel-qcow2-linux-819b4861c18d602463cfe815041d11fd81002654.tar.xz
kernel-qcow2-linux-819b4861c18d602463cfe815041d11fd81002654.zip
CLK: ti: add init support for clock IP blocks
ti_dt_clk_init_provider() can now be used to initialize the contents of a single clock IP block. This parses all the clocks under the IP block and calls the corresponding init function for them. This patch also introduces a helper function for the TI clock drivers to get register info from DT and append the master IP info to this. Signed-off-by: Tero Kristo <t-kristo@ti.com> Acked-by: Tony Lindgren <tony@atomide.com> Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk/clk.c')
-rw-r--r--drivers/clk/clk.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index 2b38dc99063f..077106732550 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -2373,8 +2373,6 @@ struct of_clk_provider {
void *data;
};
-extern struct of_device_id __clk_of_table[];
-
static const struct of_device_id __clk_of_table_sentinel
__used __section(__clk_of_table_end);
@@ -2534,7 +2532,7 @@ void __init of_clk_init(const struct of_device_id *matches)
struct device_node *np;
if (!matches)
- matches = __clk_of_table;
+ matches = &__clk_of_table;
for_each_matching_node_and_match(np, matches, &match) {
of_clk_init_cb_t clk_init_cb = match->data;