linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jonathan Cameron <jic23@kernel.org>
To: Wei Yongjun <weiyongjun1@huawei.com>
Cc: Hartmut Knaack <knaack.h@gmx.de>,
	Lars-Peter Clausen <lars@metafoo.de>,
	Peter Meerwald-Stadler <pmeerw@pmeerw.net>,
	Artur Rojek <contact@artur-rojek.eu>, <linux-iio@vger.kernel.org>,
	<kernel-janitors@vger.kernel.org>
Subject: Re: [PATCH -next] iio: adc: ingenic: remove redundant dev_err call in ingenic_adc_probe()
Date: Wed, 20 Feb 2019 10:51:17 +0000	[thread overview]
Message-ID: <20190220105117.40104d25@archlinux> (raw)
In-Reply-To: <20190218065735.159915-1-weiyongjun1@huawei.com>

On Mon, 18 Feb 2019 06:57:35 +0000
Wei Yongjun <weiyongjun1@huawei.com> wrote:

> There is a error message within devm_ioremap_resource
> already, so remove the dev_err call to avoid redundant
> error message.
> 
> Fixes: 1a78daea107d ("IIO: add Ingenic JZ47xx ADC driver.")
> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Hi

The patch is good, but the fixes tag is too strong.  We don't want
the noise of backporting the dropping of an overly verbose bit
of error printing. It's not doing any harm, just not doing any
good either!  So, let us keep this as low priority tidy up.

Applied to the togreg branch of iio.git with that tag dropped.

Thanks,

Jonathan
> ---
>  drivers/iio/adc/ingenic-adc.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/drivers/iio/adc/ingenic-adc.c b/drivers/iio/adc/ingenic-adc.c
> index 6ee1673deb0d..8f9c125939a8 100644
> --- a/drivers/iio/adc/ingenic-adc.c
> +++ b/drivers/iio/adc/ingenic-adc.c
> @@ -302,10 +302,8 @@ static int ingenic_adc_probe(struct platform_device *pdev)
>  
>  	mem_base = platform_get_resource(pdev, IORESOURCE_MEM, 0);
>  	adc->base = devm_ioremap_resource(dev, mem_base);
> -	if (IS_ERR(adc->base)) {
> -		dev_err(dev, "Unable to ioremap mmio resource\n");
> +	if (IS_ERR(adc->base))
>  		return PTR_ERR(adc->base);
> -	}
>  
>  	adc->clk = devm_clk_get(dev, "adc");
>  	if (IS_ERR(adc->clk)) {
> 
> 
> 


      reply	other threads:[~2019-02-20 10:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-18  6:57 [PATCH -next] iio: adc: ingenic: remove redundant dev_err call in ingenic_adc_probe() Wei Yongjun
2019-02-20 10:51 ` 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=20190220105117.40104d25@archlinux \
    --to=jic23@kernel.org \
    --cc=contact@artur-rojek.eu \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=knaack.h@gmx.de \
    --cc=lars@metafoo.de \
    --cc=linux-iio@vger.kernel.org \
    --cc=pmeerw@pmeerw.net \
    --cc=weiyongjun1@huawei.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 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).