From: Wei Li <liwei391@huawei.com> To: <huawei.libin@huawei.com>, Xinliang Liu <xinliang.liu@linaro.org>, "Tian Tao" <tiantao6@hisilicon.com>, David Airlie <airlied@linux.ie>, Daniel Vetter <daniel@ffwll.ch>, Philipp Zabel <p.zabel@pengutronix.de>, Thomas Zimmermann <tzimmermann@suse.de>, Maxime Ripard <maxime@cerno.tech>, Laurent Pinchart <laurent.pinchart@ideasonboard.com>, Emil Velikov <emil.velikov@collabora.com>, Sakari Ailus <sakari.ailus@linux.intel.com>, John Stultz <john.stultz@linaro.org> Cc: <dri-devel@lists.freedesktop.org>, <linux-kernel@vger.kernel.org>, <kernel-janitors@vger.kernel.org>, Hulk Robot <hulkci@huawei.com>, Wei Li <liwei391@huawei.com> Subject: [PATCH RESEND -next] drm: kirin: Remove redundant dev_err call in ade_hw_ctx_alloc() Date: Wed, 7 Apr 2021 18:06:10 +0800 [thread overview] Message-ID: <20210407100610.3278802-1-liwei391@huawei.com> (raw) There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Wei Li <liwei391@huawei.com> --- drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c index 6dcf9ec05eec..78a792048c42 100644 --- a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c +++ b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c @@ -857,10 +857,8 @@ static void *ade_hw_ctx_alloc(struct platform_device *pdev, res = platform_get_resource(pdev, IORESOURCE_MEM, 0); ctx->base = devm_ioremap_resource(dev, res); - if (IS_ERR(ctx->base)) { - DRM_ERROR("failed to remap ade io base\n"); + if (IS_ERR(ctx->base)) return ERR_PTR(-EIO); - } ctx->reset = devm_reset_control_get(dev, NULL); if (IS_ERR(ctx->reset))
WARNING: multiple messages have this Message-ID (diff)
From: Wei Li <liwei391@huawei.com> To: <huawei.libin@huawei.com>, Xinliang Liu <xinliang.liu@linaro.org>, "Tian Tao" <tiantao6@hisilicon.com>, David Airlie <airlied@linux.ie>, Daniel Vetter <daniel@ffwll.ch>, Philipp Zabel <p.zabel@pengutronix.de>, Thomas Zimmermann <tzimmermann@suse.de>, Maxime Ripard <maxime@cerno.tech>, Laurent Pinchart <laurent.pinchart@ideasonboard.com>, Emil Velikov <emil.velikov@collabora.com>, Sakari Ailus <sakari.ailus@linux.intel.com>, John Stultz <john.stultz@linaro.org> Cc: Hulk Robot <hulkci@huawei.com>, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Wei Li <liwei391@huawei.com> Subject: [PATCH RESEND -next] drm: kirin: Remove redundant dev_err call in ade_hw_ctx_alloc() Date: Wed, 7 Apr 2021 18:06:10 +0800 [thread overview] Message-ID: <20210407100610.3278802-1-liwei391@huawei.com> (raw) There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Wei Li <liwei391@huawei.com> --- drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c index 6dcf9ec05eec..78a792048c42 100644 --- a/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c +++ b/drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c @@ -857,10 +857,8 @@ static void *ade_hw_ctx_alloc(struct platform_device *pdev, res = platform_get_resource(pdev, IORESOURCE_MEM, 0); ctx->base = devm_ioremap_resource(dev, res); - if (IS_ERR(ctx->base)) { - DRM_ERROR("failed to remap ade io base\n"); + if (IS_ERR(ctx->base)) return ERR_PTR(-EIO); - } ctx->reset = devm_reset_control_get(dev, NULL); if (IS_ERR(ctx->reset)) _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel
next reply other threads:[~2021-04-07 10:03 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-04-07 10:06 Wei Li [this message] 2021-04-07 10:06 ` [PATCH RESEND -next] drm: kirin: Remove redundant dev_err call in ade_hw_ctx_alloc() Wei Li
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=20210407100610.3278802-1-liwei391@huawei.com \ --to=liwei391@huawei.com \ --cc=airlied@linux.ie \ --cc=daniel@ffwll.ch \ --cc=dri-devel@lists.freedesktop.org \ --cc=emil.velikov@collabora.com \ --cc=huawei.libin@huawei.com \ --cc=hulkci@huawei.com \ --cc=john.stultz@linaro.org \ --cc=kernel-janitors@vger.kernel.org \ --cc=laurent.pinchart@ideasonboard.com \ --cc=linux-kernel@vger.kernel.org \ --cc=maxime@cerno.tech \ --cc=p.zabel@pengutronix.de \ --cc=sakari.ailus@linux.intel.com \ --cc=tiantao6@hisilicon.com \ --cc=tzimmermann@suse.de \ --cc=xinliang.liu@linaro.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: linkBe 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.