Linux clock framework development
 help / color / mirror / Atom feed
* [PATCH] clk: cdce706: Add missing of_clk_del_provider call in cdce706_remove
@ 2015-05-21 14:26 Axel Lin
  2015-05-21 18:14 ` Stephen Boyd
  2015-05-21 18:39 ` Max Filippov
  0 siblings, 2 replies; 5+ messages in thread
From: Axel Lin @ 2015-05-21 14:26 UTC (permalink / raw)
  To: Mike Turquette; +Cc: Stephen Boyd, Max Filippov, linux-clk

Remove a previously registered clock provider when unload the module.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 drivers/clk/clk-cdce706.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/clk/clk-cdce706.c b/drivers/clk/clk-cdce706.c
index 8a2dfd0..f01164f 100644
--- a/drivers/clk/clk-cdce706.c
+++ b/drivers/clk/clk-cdce706.c
@@ -666,6 +666,7 @@ static int cdce706_probe(struct i2c_client *client,
 
 static int cdce706_remove(struct i2c_client *client)
 {
+	of_clk_del_provider(client->dev.of_node);
 	return 0;
 }
 
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-05-21 18:53 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-21 14:26 [PATCH] clk: cdce706: Add missing of_clk_del_provider call in cdce706_remove Axel Lin
2015-05-21 18:14 ` Stephen Boyd
2015-05-21 18:35   ` Max Filippov
2015-05-21 18:53     ` Stephen Boyd
2015-05-21 18:39 ` Max Filippov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox