diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c index 705156828a7a1f6a6edd3e1f89e22e344a0db340..7873151a7ff8382e741a616df8f940e6590ab9eb 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;