[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <3fac78c4-189f-57cb-ca81-a97c918e2386@baylibre.com>
Date: Mon, 26 Apr 2021 20:03:34 +0200
From: Neil Armstrong <narmstrong@...libre.com>
To: Muhammad Usama Anjum <musamaanjum@...il.com>, hverkuil@...all.nl,
Mauro Carvalho Chehab <mchehab@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Kevin Hilman <khilman@...libre.com>,
Jerome Brunet <jbrunet@...libre.com>,
Martin Blumenstingl <martin.blumenstingl@...glemail.com>,
"open list:MESON VIDEO DECODER DRIVER FOR AMLOGIC SOCS"
<linux-media@...r.kernel.org>,
"open list:MESON VIDEO DECODER DRIVER FOR AMLOGIC SOCS"
<linux-amlogic@...ts.infradead.org>,
"open list:STAGING SUBSYSTEM" <linux-staging@...ts.linux.dev>,
"moderated list:ARM/Amlogic Meson SoC support"
<linux-arm-kernel@...ts.infradead.org>,
open list <linux-kernel@...r.kernel.org>
Cc: kernel-janitors@...r.kernel.org, dan.carpenter@...cle.com
Subject: Re: [PATCH] staging: media/meson: remove redundant dev_err call
On 07/04/2021 18:09, Muhammad Usama Anjum wrote:
> devm_ioremap_resource() prints error message in itself. Remove the
> dev_err call to avoid redundant error message.
>
> Signed-off-by: Muhammad Usama Anjum <musamaanjum@...il.com>
> ---
> drivers/staging/media/meson/vdec/vdec.c | 8 ++------
> 1 file changed, 2 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/staging/media/meson/vdec/vdec.c b/drivers/staging/media/meson/vdec/vdec.c
> index 5d4db7a5b4b5..e51d69c4729d 100644
> --- a/drivers/staging/media/meson/vdec/vdec.c
> +++ b/drivers/staging/media/meson/vdec/vdec.c
> @@ -1008,17 +1008,13 @@ static int vdec_probe(struct platform_device *pdev)
>
> r = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dos");
> core->dos_base = devm_ioremap_resource(dev, r);
> - if (IS_ERR(core->dos_base)) {
> - dev_err(dev, "Couldn't remap DOS memory\n");
> + if (IS_ERR(core->dos_base))
> return PTR_ERR(core->dos_base);
> - }
>
> r = platform_get_resource_byname(pdev, IORESOURCE_MEM, "esparser");
> core->esparser_base = devm_ioremap_resource(dev, r);
> - if (IS_ERR(core->esparser_base)) {
> - dev_err(dev, "Couldn't remap ESPARSER memory\n");
> + if (IS_ERR(core->esparser_base))
> return PTR_ERR(core->esparser_base);
> - }
>
> core->regmap_ao =
> syscon_regmap_lookup_by_phandle(dev->of_node,
>
Acked-by: Neil Armstrong <narmstrong@...libre.com>
Powered by blists - more mailing lists