From: Mrugesh Katepallewar <mrugesh.mk@ti.com>
To: <linux-watchdog@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Cc: <wim@iguana.be>, <nsekhar@ti.com>
Subject: [PATCH] watchdog: davinci_wdt: use devm managed clk get
Date: Wed, 6 Feb 2013 16:56:01 +0530 [thread overview]
Message-ID: <1360149961-3546-1-git-send-email-mrugesh.mk@ti.com> (raw)
Get the clock using devm_clk_get().
Signed-off-by: Mrugesh Katepallewar <mrugesh.mk@ti.com>
---
Apply on top of v3.8-rc6 of linus tree.
:100644 100644 e8e8724... c3c2f820.. M drivers/watchdog/davinci_wdt.c
drivers/watchdog/davinci_wdt.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/watchdog/davinci_wdt.c b/drivers/watchdog/davinci_wdt.c
index e8e8724..c3c2f820 100644
--- a/drivers/watchdog/davinci_wdt.c
+++ b/drivers/watchdog/davinci_wdt.c
@@ -204,7 +204,7 @@ static int davinci_wdt_probe(struct platform_device *pdev)
int ret = 0, size;
struct device *dev = &pdev->dev;
- wdt_clk = clk_get(dev, NULL);
+ wdt_clk = devm_clk_get(dev, NULL);
if (WARN_ON(IS_ERR(wdt_clk)))
return PTR_ERR(wdt_clk);
@@ -257,7 +257,6 @@ static int davinci_wdt_remove(struct platform_device *pdev)
}
clk_disable_unprepare(wdt_clk);
- clk_put(wdt_clk);
return 0;
}
--
1.7.9.5
reply other threads:[~2013-02-06 11:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1360149961-3546-1-git-send-email-mrugesh.mk@ti.com \
--to=mrugesh.mk@ti.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=nsekhar@ti.com \
--cc=wim@iguana.be \
/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
all inboxes | Powered by JetHome®