From: "Niklas Söderlund" <niklas.soderlund@ragnatech.se>
To: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>,
Ramesh Shanmugasundaram <ramesh.shanmugasundaram@bp.renesas.com>,
linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH v2] media: rcar_drif: Remove devm_ioremap_resource() error printing
Date: Sat, 2 Mar 2019 11:09:44 +0100 [thread overview]
Message-ID: <20190302100944.GA22550@bigcity.dyn.berto.se> (raw)
In-Reply-To: <20190301093831.11106-1-geert+renesas@glider.be>
Hi Geert,
Thanks for your patch.
On 2019-03-01 10:38:31 +0100, Geert Uytterhoeven wrote:
> devm_ioremap_resource() already prints an error message on failure, so
> there is no need to repeat that.
>
> Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
> ---
> v2:
> - Drop assignment to ret.
> ---
> drivers/media/platform/rcar_drif.c | 8 +++-----
> 1 file changed, 3 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/media/platform/rcar_drif.c b/drivers/media/platform/rcar_drif.c
> index c417ff8f6fe548f3..608e5217ccd50a1b 100644
> --- a/drivers/media/platform/rcar_drif.c
> +++ b/drivers/media/platform/rcar_drif.c
> @@ -1405,11 +1405,9 @@ static int rcar_drif_probe(struct platform_device *pdev)
> /* Register map */
> res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
> ch->base = devm_ioremap_resource(&pdev->dev, res);
> - if (IS_ERR(ch->base)) {
> - ret = PTR_ERR(ch->base);
> - dev_err(&pdev->dev, "ioremap failed (%d)\n", ret);
> - return ret;
> - }
> + if (IS_ERR(ch->base))
> + return PTR_ERR(ch->base);
> +
> ch->start = res->start;
> platform_set_drvdata(pdev, ch);
>
> --
> 2.17.1
>
--
Regards,
Niklas Söderlund
next prev parent reply other threads:[~2019-03-02 10:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-01 9:38 [PATCH v2] media: rcar_drif: Remove devm_ioremap_resource() error printing Geert Uytterhoeven
2019-03-02 10:09 ` Niklas Söderlund [this message]
2019-03-06 12:52 ` Simon Horman
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=20190302100944.GA22550@bigcity.dyn.berto.se \
--to=niklas.soderlund@ragnatech.se \
--cc=geert+renesas@glider.be \
--cc=linux-media@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=ramesh.shanmugasundaram@bp.renesas.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.