From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
To: Ruan Jinjie <ruanjinjie@huawei.com>
Cc: mirela.rabulea@nxp.com, linux-imx@nxp.com, mchehab@kernel.org,
shawnguo@kernel.org, s.hauer@pengutronix.de,
kernel@pengutronix.de, festevam@gmail.com,
linux-arm-kernel@lists.infradead.org,
linux-media@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH -next] media: nxp: Remove redundant dev_err()
Date: Thu, 27 Jul 2023 12:53:50 +0300 [thread overview]
Message-ID: <20230727095350.GF25174@pendragon.ideasonboard.com> (raw)
In-Reply-To: <20230727102154.2757410-1-ruanjinjie@huawei.com>
Hi Ruan,
Thank you for the patch.
On Thu, Jul 27, 2023 at 10:21:54AM +0000, Ruan Jinjie wrote:
> There is no need to call the dev_err() function directly to print a custom
> message when handling an error from platform_get_irq() function as
> it is going to display an appropriate error message in case of a failure.
>
> Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> ---
> drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c | 1 -
> drivers/media/platform/nxp/imx8-isi/imx8-isi-pipe.c | 1 -
> 2 files changed, 2 deletions(-)
>
> diff --git a/drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c b/drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
> index 9512c0a61966..b7a720198ce5 100644
> --- a/drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
> +++ b/drivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c
> @@ -2742,7 +2742,6 @@ static int mxc_jpeg_probe(struct platform_device *pdev)
> dev_info(&pdev->dev, "choose slot %d\n", jpeg->slot_data.slot);
> dec_irq = platform_get_irq(pdev, 0);
> if (dec_irq < 0) {
> - dev_err(&pdev->dev, "Failed to get irq %d\n", dec_irq);
> ret = dec_irq;
> goto err_irq;
> }
> diff --git a/drivers/media/platform/nxp/imx8-isi/imx8-isi-pipe.c b/drivers/media/platform/nxp/imx8-isi/imx8-isi-pipe.c
> index c4454aa1cb34..65d20e9bae69 100644
> --- a/drivers/media/platform/nxp/imx8-isi/imx8-isi-pipe.c
> +++ b/drivers/media/platform/nxp/imx8-isi/imx8-isi-pipe.c
> @@ -791,7 +791,6 @@ int mxc_isi_pipe_init(struct mxc_isi_dev *isi, unsigned int id)
>
> irq = platform_get_irq(to_platform_device(isi->dev), id);
> if (irq < 0) {
> - dev_err(pipe->isi->dev, "Failed to get IRQ (%d)\n", irq);
> ret = irq;
> goto error;
> }
--
Regards,
Laurent Pinchart
next prev parent reply other threads:[~2023-07-27 9:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-27 10:21 Ruan Jinjie
2023-07-27 9:53 ` Laurent Pinchart [this message]
2023-08-09 21:52 ` Mirela Rabulea
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=20230727095350.GF25174@pendragon.ideasonboard.com \
--to=laurent.pinchart@ideasonboard.com \
--cc=festevam@gmail.com \
--cc=kernel@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-imx@nxp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=mirela.rabulea@nxp.com \
--cc=ruanjinjie@huawei.com \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
/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
all inboxes | Powered by JetHome®