From: Arnd Bergmann <arnd@arndb.de>
To: Russell King - ARM Linux <linux@arm.linux.org.uk>
Cc: linux-mmc@vger.kernel.org, Ulf Hansson <ulf.hansson@linaro.org>,
linux-arm-kernel@lists.infradead.org,
Jonas Jensen <jonas.jensen@gmail.com>
Subject: Re: [PATCH] mmc: moxart: fix probe logic
Date: Thu, 29 Jan 2015 23:04:46 +0100 [thread overview]
Message-ID: <4063267.WLHfiFCJT7@wuerfel> (raw)
In-Reply-To: <20150129170104.GD26493@n2100.arm.linux.org.uk>
On Thursday 29 January 2015 17:01:04 Russell King - ARM Linux wrote:
> On Thu, Jan 29, 2015 at 05:15:31PM +0100, Arnd Bergmann wrote:
> > @@ -586,10 +586,10 @@ static int moxart_probe(struct platform_device *pdev)
> > goto out;
> > }
> >
> > - clk = of_clk_get(node, 0);
> > - if (IS_ERR(clk)) {
> > + host->clk = of_clk_get(node, 0);
> > + if (IS_ERR(host->clk)) {
> > dev_err(dev, "of_clk_get failed\n");
> > - ret = PTR_ERR(clk);
> > + ret = PTR_ERR(host->clk);
> > goto out;
> > }
> >
> ...
> > @@ -677,6 +679,8 @@ static int moxart_probe(struct platform_device *pdev)
> > return 0;
> >
> > out:
> > + if (host->clk)
> > + clk_put(host->clk);
>
> Are you sure?
>
Oops, sorry about that.
Thanks for the review! Fixed patch follows.
Arnd
next prev parent reply other threads:[~2015-01-29 22:04 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-29 16:15 [PATCH] mmc: moxart: fix probe logic Arnd Bergmann
2015-01-29 17:01 ` Russell King - ARM Linux
2015-01-29 22:04 ` Arnd Bergmann [this message]
2015-01-29 22:06 ` [PATCH v2] " Arnd Bergmann
2015-02-02 10:52 ` Jonas Jensen
2015-02-02 14:58 ` Arnd Bergmann
2015-02-02 15:43 ` [PATCH v3] " Jonas Jensen
2015-02-02 20:03 ` Arnd Bergmann
2015-02-03 15:55 ` [PATCH v4] " Jonas Jensen
2015-02-04 8:40 ` Ulf Hansson
2015-02-03 8:02 ` [PATCH v3] " Ulf Hansson
2015-02-03 9:06 ` Arnd Bergmann
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=4063267.WLHfiFCJT7@wuerfel \
--to=arnd@arndb.de \
--cc=jonas.jensen@gmail.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-mmc@vger.kernel.org \
--cc=linux@arm.linux.org.uk \
--cc=ulf.hansson@linaro.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