From: Tony Lindgren <tony@atomide.com>
To: Jon Hunter <jon-hunter@ti.com>
Cc: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>,
linux-omap@vger.kernel.org, mark.rutland@arm.com,
linux-arm-kernel@lists.infradead.org, zonque@gmail.com,
matthias.bgg@googlemail.com
Subject: Re: [PATCH] ARM: omap2: gpmc: Remove unneeded of_node_put()
Date: Fri, 1 Feb 2013 13:59:17 -0800 [thread overview]
Message-ID: <20130201215916.GX22517@atomide.com> (raw)
In-Reply-To: <51029423.2040106@ti.com>
* Jon Hunter <jon-hunter@ti.com> [130125 06:21]:
>
> On 01/25/2013 06:19 AM, Ezequiel Garcia wrote:
> > for_each_node_by_name() automatically calls of_node_put() on each
> > node passed; so don't do it explicitly unless there's an error.
> >
> > Reported-by: Mark Rutland <mark.rutland@arm.com>
> > Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
> > ---
> > arch/arm/mach-omap2/gpmc.c | 5 +++--
> > 1 files changed, 3 insertions(+), 2 deletions(-)
> >
> > diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c
> > index 01ce462..c6255f7 100644
> > --- a/arch/arm/mach-omap2/gpmc.c
> > +++ b/arch/arm/mach-omap2/gpmc.c
> > @@ -1271,9 +1271,10 @@ static int gpmc_probe_dt(struct platform_device *pdev)
> >
> > for_each_node_by_name(child, "nand") {
> > ret = gpmc_probe_nand_child(pdev, child);
> > - of_node_put(child);
> > - if (ret < 0)
> > + if (ret < 0) {
> > + of_node_put(child);
> > return ret;
> > + }
> > }
> >
> > return 0;
> >
>
> Acked-by: Jon Hunter <jon-hunter@ti.com>
Thanks applying into omap-for-v3.9/gpmc.
Tony
WARNING: multiple messages have this Message-ID (diff)
From: tony@atomide.com (Tony Lindgren)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: omap2: gpmc: Remove unneeded of_node_put()
Date: Fri, 1 Feb 2013 13:59:17 -0800 [thread overview]
Message-ID: <20130201215916.GX22517@atomide.com> (raw)
In-Reply-To: <51029423.2040106@ti.com>
* Jon Hunter <jon-hunter@ti.com> [130125 06:21]:
>
> On 01/25/2013 06:19 AM, Ezequiel Garcia wrote:
> > for_each_node_by_name() automatically calls of_node_put() on each
> > node passed; so don't do it explicitly unless there's an error.
> >
> > Reported-by: Mark Rutland <mark.rutland@arm.com>
> > Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
> > ---
> > arch/arm/mach-omap2/gpmc.c | 5 +++--
> > 1 files changed, 3 insertions(+), 2 deletions(-)
> >
> > diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c
> > index 01ce462..c6255f7 100644
> > --- a/arch/arm/mach-omap2/gpmc.c
> > +++ b/arch/arm/mach-omap2/gpmc.c
> > @@ -1271,9 +1271,10 @@ static int gpmc_probe_dt(struct platform_device *pdev)
> >
> > for_each_node_by_name(child, "nand") {
> > ret = gpmc_probe_nand_child(pdev, child);
> > - of_node_put(child);
> > - if (ret < 0)
> > + if (ret < 0) {
> > + of_node_put(child);
> > return ret;
> > + }
> > }
> >
> > return 0;
> >
>
> Acked-by: Jon Hunter <jon-hunter@ti.com>
Thanks applying into omap-for-v3.9/gpmc.
Tony
next prev parent reply other threads:[~2013-02-01 21:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-25 12:19 [PATCH] ARM: omap2: gpmc: Remove unneeded of_node_put() Ezequiel Garcia
2013-01-25 12:19 ` Ezequiel Garcia
2013-01-25 14:18 ` Jon Hunter
2013-01-25 14:18 ` Jon Hunter
2013-02-01 21:59 ` Tony Lindgren [this message]
2013-02-01 21:59 ` Tony Lindgren
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=20130201215916.GX22517@atomide.com \
--to=tony@atomide.com \
--cc=ezequiel.garcia@free-electrons.com \
--cc=jon-hunter@ti.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-omap@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=matthias.bgg@googlemail.com \
--cc=zonque@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.