diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2015-12-28 19:23:02 +0900 |
---|---|---|
committer | Stephen Boyd <sboyd@codeaurora.org> | 2016-02-01 17:01:54 -0800 |
commit | 3c436bf95a1df22fa501be7134bccd29f8387dfe (patch) | |
tree | abd23b27095a741caba0eceaf891ea08c8ae5ac5 /drivers/clk/clk.c | |
parent | 88cfbef2acd38443c3eed780263b5f5e95a8dc1f (diff) | |
download | talos-obmc-linux-3c436bf95a1df22fa501be7134bccd29f8387dfe.tar.gz talos-obmc-linux-3c436bf95a1df22fa501be7134bccd29f8387dfe.zip |
clk: drop the initial core->parents look-ups from __clk_core_init()
The core->parents is a cache to save expensive clock parent look-ups.
It will be filled as needed later. We do not have to do it here.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/clk.c')
-rw-r--r-- | drivers/clk/clk.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index c2e993db0cfd..98c68e99d5f6 100644 --- a/drivers/clk/clk.c +++ b/drivers/clk/clk.c @@ -2347,17 +2347,6 @@ static int __clk_core_init(struct clk_core *core) "%s: invalid NULL in %s's .parent_names\n", __func__, core->name); - /* - * clk_core_lookup returns NULL for parents that have not been - * clk_init'd; thus any access to clk->parents[] must check - * for a NULL pointer. We can always perform lazy lookups for - * missing parents later on. - */ - if (core->parents) - for (i = 0; i < core->num_parents; i++) - core->parents[i] = - clk_core_lookup(core->parent_names[i]); - core->parent = __clk_init_parent(core); /* |