From: Lars-Peter Clausen <lars@metafoo.de>
To: Wei Yongjun <weiyj.lk@gmail.com>
Cc: jic23@cam.ac.uk, michael.hennerich@analog.com,
gregkh@linuxfoundation.org, sachin.kamat@linaro.org,
yongjun_wei@trendmicro.com.cn, linux-iio@vger.kernel.org
Subject: Re: [PATCH] iio: frequency: adf4350: add missing clk_disable_unprepare() on error in adf4350_probe()
Date: Sat, 12 Oct 2013 11:56:27 +0200 [thread overview]
Message-ID: <52591CCB.7010001@metafoo.de> (raw)
In-Reply-To: <CAPgLHd_jFVRUj4RYUi_Z-bw=+zM+YrKbvRPz-Dhiw0eCuQXKDw@mail.gmail.com>
On 10/12/2013 08:46 AM, Wei Yongjun wrote:
> From: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
>
> Add the missing clk_disable_unprepare() before return
> from adf4350_probe() in the error handling case.
>
> Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Reviewed-by: Lars-Peter CLausen <lars@metafoo.de>
Thanks.
> ---
> drivers/iio/frequency/adf4350.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/iio/frequency/adf4350.c b/drivers/iio/frequency/adf4350.c
> index a7b30be..52605c0 100644
> --- a/drivers/iio/frequency/adf4350.c
> +++ b/drivers/iio/frequency/adf4350.c
> @@ -525,8 +525,10 @@ static int adf4350_probe(struct spi_device *spi)
> }
>
> indio_dev = devm_iio_device_alloc(&spi->dev, sizeof(*st));
> - if (indio_dev == NULL)
> - return -ENOMEM;
> + if (indio_dev == NULL) {
> + ret = -ENOMEM;
Here is a extra space. Jonathan can you clean this up when applying the
patch? Thanks.
> + goto error_disable_clk;
> + }
>
> st = iio_priv(indio_dev);
>
>
next prev parent reply other threads:[~2013-10-12 9:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-12 6:46 [PATCH] iio: frequency: adf4350: add missing clk_disable_unprepare() on error in adf4350_probe() Wei Yongjun
2013-10-12 9:56 ` Lars-Peter Clausen [this message]
2013-10-12 12:21 ` Jonathan Cameron
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=52591CCB.7010001@metafoo.de \
--to=lars@metafoo.de \
--cc=gregkh@linuxfoundation.org \
--cc=jic23@cam.ac.uk \
--cc=linux-iio@vger.kernel.org \
--cc=michael.hennerich@analog.com \
--cc=sachin.kamat@linaro.org \
--cc=weiyj.lk@gmail.com \
--cc=yongjun_wei@trendmicro.com.cn \
/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.