[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20210409075444.225388-1-clare.chenhui@huawei.com>
Date: Fri, 9 Apr 2021 15:54:44 +0800
From: Chen Hui <clare.chenhui@...wei.com>
To: <xinliang.liu@...aro.org>, <tiantao6@...ilicon.com>,
<john.stultz@...aro.org>, <kong.kongxinwei@...ilicon.com>,
<puck.chen@...ilicon.com>, <airlied@...ux.ie>, <daniel@...ll.ch>
CC: <dri-devel@...ts.freedesktop.org>, <linux-kernel@...r.kernel.org>
Subject: [PATCH -next] drm/hisilicon/kirin: Remove redundant DRM_ERROR call in dsi_parse_dt()
There is a error message within devm_ioremap_resource
already, so remove the DRM_ERROR call to avoid redundant
error message.
Signed-off-by: Chen Hui <clare.chenhui@...wei.com>
---
drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c b/drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c
index 00e87c290796..bc19ce318c62 100644
--- a/drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c
+++ b/drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c
@@ -836,10 +836,8 @@ static int dsi_parse_dt(struct platform_device *pdev, struct dw_dsi *dsi)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
ctx->base = devm_ioremap_resource(&pdev->dev, res);
- if (IS_ERR(ctx->base)) {
- DRM_ERROR("failed to remap dsi io region\n");
+ if (IS_ERR(ctx->base))
return PTR_ERR(ctx->base);
- }
return 0;
}
--
2.17.1
Powered by blists - more mailing lists