summaryrefslogtreecommitdiff
path: root/drivers/clk/clk.c
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2015-07-06 16:50:00 -0700
committerStephen Boyd <sboyd@codeaurora.org>2015-07-07 17:20:05 -0700
commit2573a02aa5c882fdcab82bba953241f2fa3181a3 (patch)
tree836d0044b7252d4ec38c05d96ffdf2dd2825c733 /drivers/clk/clk.c
parent2e3b19f137f31290979999ff7ac67ce52e02be0e (diff)
downloadlwn-2573a02aa5c882fdcab82bba953241f2fa3181a3.tar.gz
lwn-2573a02aa5c882fdcab82bba953241f2fa3181a3.zip
clk: Move clk_provider_list to scope of function using it
The list isn't used after of_clk_init() is called, so we don't need to keep an empty list around after init. Put the list on the stack. Cc: Gregory CLEMENT <gregory.clement@free-electrons.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/clk.c')
-rw-r--r--drivers/clk/clk.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index 705156828a7a..7873151a7ff8 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -3054,8 +3054,6 @@ struct clock_provider {
struct list_head node;
};
-static LIST_HEAD(clk_provider_list);
-
/*
* This function looks for a parent clock. If there is one, then it
* checks that the provider for this parent clock was initialized, in
@@ -3106,6 +3104,7 @@ void __init of_clk_init(const struct of_device_id *matches)
struct clock_provider *clk_provider, *next;
bool is_init_done;
bool force = false;
+ LIST_HEAD(clk_provider_list);
if (!matches)
matches = &__clk_of_table;