From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 3/4] ARM: smp_twd: get the rate from a clock
Date: Mon, 12 Dec 2011 13:46:15 +0000 [thread overview]
Message-ID: <20111212134614.GU14542@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <1323683847-23902-1-git-send-email-linus.walleij@stericsson.com>
On Mon, Dec 12, 2011 at 10:57:27AM +0100, Linus Walleij wrote:
> +static struct clk *twd_get_clock(void)
> +{
> + struct clk *clk;
> + int err;
> +
> + clk = clk_get_sys("smp_twd", NULL);
> + if (IS_ERR(clk)) {
> + pr_err("smp_twd: clock not found: %d\n", (int)PTR_ERR(clk));
> + return clk;
> + }
> +
> + err = clk_enable(clk);
> + if (err) {
> + pr_err("smp_twd: clock failed to enable: %d\n", err);
> + clk_put(clk);
> + return ERR_PTR(err);
> + }
NAK. No clk_prepare().
next prev parent reply other threads:[~2011-12-12 13:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-12 9:57 [PATCH 3/4] ARM: smp_twd: get the rate from a clock Linus Walleij
2011-12-12 13:46 ` Russell King - ARM Linux [this message]
2011-12-13 5:24 ` Santosh Shilimkar
2011-12-13 8:17 ` Russell King - ARM Linux
2011-12-13 8:46 ` Shilimkar, Santosh
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=20111212134614.GU14542@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=linux-arm-kernel@lists.infradead.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;
as well as URLs for NNTP newsgroup(s).