[PATCH v13 7/9] clk: Take the prepare lock when updating the list of per-user clks

Tomeu Vizoso tomeu.vizoso at collabora.com
Tue Sep 23 11:44:15 PDT 2014


Signed-off-by: Tomeu Vizoso <tomeu.vizoso at collabora.com>
---
 drivers/clk/clk.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/clk/clk.c b/drivers/clk/clk.c
index bfb4672..3eb133c 100644
--- a/drivers/clk/clk.c
+++ b/drivers/clk/clk.c
@@ -560,7 +560,9 @@ struct clk *__clk_create_clk(struct clk_core *clk_core, const char *dev,
 	clk->dev_id = dev;
 	clk->con_id = con;
 
+	clk_prepare_lock();
 	hlist_add_head(&clk->child_node, &clk_core->per_user_clks);
+	clk_prepare_unlock();
 
 	return clk;
 }
-- 
1.9.3




More information about the linux-arm-kernel mailing list