From: Axel Lin <axel.lin@ingics.com>
To: Mike Turquette <mturquette@linaro.org>
Cc: Stephen Boyd <sboyd@codeaurora.org>,
Max Filippov <jcmvbkbc@gmail.com>,
linux-clk@vger.kernel.org
Subject: [PATCH] clk: cdce706: Add missing of_clk_del_provider call in cdce706_remove
Date: Thu, 21 May 2015 22:26:13 +0800 [thread overview]
Message-ID: <1432218373.27793.0.camel@ingics.com> (raw)
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
next reply other threads:[~2015-05-21 14:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-21 14:26 Axel Lin [this message]
2015-05-21 18:14 ` [PATCH] clk: cdce706: Add missing of_clk_del_provider call in cdce706_remove Stephen Boyd
2015-05-21 18:35 ` Max Filippov
2015-05-21 18:53 ` Stephen Boyd
2015-05-21 18:39 ` Max Filippov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1432218373.27793.0.camel@ingics.com \
--to=axel.lin@ingics.com \
--cc=jcmvbkbc@gmail.com \
--cc=linux-clk@vger.kernel.org \
--cc=mturquette@linaro.org \
--cc=sboyd@codeaurora.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox