From: Jonathan Cameron <jic23@kernel.org>
To: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Cc: knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net,
raltherr@google.com, joel@jms.id.au, arvind.yadav.cs@gmail.com,
mykolak@mellanox.com, linux-iio@vger.kernel.org,
linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org
Subject: Re: [PATCH] iio: adc: aspeed: Fix error handling path
Date: Sun, 14 Jan 2018 11:03:19 +0000 [thread overview]
Message-ID: <20180114110319.3bffcb4d@archlinux> (raw)
In-Reply-To: <20180108064736.15991-1-christophe.jaillet@wanadoo.fr>
On Mon, 8 Jan 2018 07:47:36 +0100
Christophe JAILLET <christophe.jaillet@wanadoo.fr> wrote:
> The labels and branching order of the error path of 'aspeed_adc_probe()'
> are broken.
> Re-order the labels and goto statements.
>
> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Applied to the fixes-togreg-post-rc1 branch of iio.git.
The patch doesn't apply that far back so I'm going to assume
you are right and that it was a merge conflict that went wrong.
Anyhow, will go in sometime after rc1.
Thanks,
Jonathan
> ---
> Not sure where it comes from.
> Merge conflict incorrectly fixed?
> ---
> drivers/iio/adc/aspeed_adc.c | 7 ++++---
> 1 file changed, 4 insertions(+), 3 deletions(-)
>
> diff --git a/drivers/iio/adc/aspeed_adc.c b/drivers/iio/adc/aspeed_adc.c
> index 327a49ba1991..9515ca165dfd 100644
> --- a/drivers/iio/adc/aspeed_adc.c
> +++ b/drivers/iio/adc/aspeed_adc.c
> @@ -243,7 +243,7 @@ static int aspeed_adc_probe(struct platform_device *pdev)
> ASPEED_ADC_INIT_POLLING_TIME,
> ASPEED_ADC_INIT_TIMEOUT);
> if (ret)
> - goto scaler_error;
> + goto poll_timeout_error;
> }
>
> /* Start all channels in normal mode. */
> @@ -274,9 +274,10 @@ static int aspeed_adc_probe(struct platform_device *pdev)
> writel(ASPEED_OPERATION_MODE_POWER_DOWN,
> data->base + ASPEED_REG_ENGINE_CONTROL);
> clk_disable_unprepare(data->clk_scaler->clk);
> -reset_error:
> - reset_control_assert(data->rst);
> clk_enable_error:
> +poll_timeout_error:
> + reset_control_assert(data->rst);
> +reset_error:
> clk_hw_unregister_divider(data->clk_scaler);
> scaler_error:
> clk_hw_unregister_divider(data->clk_prescaler);
prev parent reply other threads:[~2018-01-14 11:03 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-08 6:47 [PATCH] iio: adc: aspeed: Fix error handling path Christophe JAILLET
2018-01-08 6:47 ` Christophe JAILLET
2018-01-14 11:03 ` Jonathan Cameron [this message]
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=20180114110319.3bffcb4d@archlinux \
--to=jic23@kernel.org \
--cc=arvind.yadav.cs@gmail.com \
--cc=christophe.jaillet@wanadoo.fr \
--cc=joel@jms.id.au \
--cc=kernel-janitors@vger.kernel.org \
--cc=knaack.h@gmx.de \
--cc=lars@metafoo.de \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mykolak@mellanox.com \
--cc=pmeerw@pmeerw.net \
--cc=raltherr@google.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.