drm/hisilicon/kirin: Remove redundant DRM_ERROR call in dsi_parse_dt()
Subsystems (3)
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.
Signed-off-by Chen Hui <[email protected]>
--- 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
@@ -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