Skip to contentSkip to conversation

drm/hisilicon/kirin: Remove redundant DRM_ERROR call in dsi_parse_dt()

PATCH New Chen Hui 1 participant 1 message Apr 9, 2021

Subsystems (3)
lore
Share & tools
lore

Chen Hui

author
#0 lore raw

PATCH 1/1 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.

---
 drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/gpu/drm/hisilicon/kirin/dw_drm_dsi.c +1 -3
index 00e87c290796..bc19ce318c62 100644
@@ -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;
 }
Signature · 6 lines
2.17.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel