linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] clkdev: Implement managed clk_get()
Date: Mon, 2 Apr 2012 22:53:41 +0100	[thread overview]
Message-ID: <20120402215341.GL24211@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <1333403385-24133-1-git-send-email-broonie@opensource.wolfsonmicro.com>

On Mon, Apr 02, 2012 at 10:49:45PM +0100, Mark Brown wrote:
> Allow clk API users to simplify their cleanup paths by providing a
> managed version of clk_get() and clk_put().
> 
> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

Much better, thanks.  One minor comment...

> ---
>  Documentation/driver-model/devres.txt |    3 ++
>  drivers/clk/clkdev.c                  |   45 +++++++++++++++++++++++++++++++++
>  include/linux/clk.h                   |   32 +++++++++++++++++++++++
>  3 files changed, 80 insertions(+), 0 deletions(-)
> 
> diff --git a/Documentation/driver-model/devres.txt b/Documentation/driver-model/devres.txt
> index 2a596a4..3a10848 100644
> --- a/Documentation/driver-model/devres.txt
> +++ b/Documentation/driver-model/devres.txt
> @@ -276,3 +276,6 @@ REGULATOR
>    devm_regulator_get()
>    devm_regulator_put()
>    devm_regulator_bulk_get()
> +
> +CLOCK
> +  devm_clk_get()

devm_clk_put() ?

  reply	other threads:[~2012-04-02 21:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-02 21:49 [PATCH] clkdev: Implement managed clk_get() Mark Brown
2012-04-02 21:53 ` Russell King - ARM Linux [this message]
2012-04-02 21:59   ` Mark Brown
2012-04-04 17:48     ` Thierry Reding
2012-04-04 19:21       ` Mark Brown

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=20120402215341.GL24211@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).