Skip to contentSkip to conversation

drm/stm: Remove redundant dev_err call in ltdc_load()

PATCH New ChenXiaoSong 1 participant 1 message Jun 4, 2021

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/stm: Remove redundant dev_err call in ltdc_load()

There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message.

---
 drivers/gpu/drm/stm/ltdc.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/stm/ltdc.c +0 -1
index e99771b947b6..9d06c70b3331 100644
@@ -1284,7 +1284,6 @@ int ltdc_load(struct drm_device *ddev)
 	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
 	ldev->regs = devm_ioremap_resource(dev, res);
 	if (IS_ERR(ldev->regs)) {
-		DRM_ERROR("Unable to get ltdc registers\n");
 		ret = PTR_ERR(ldev->regs);
 		goto err;
 	}
Signature · 1 line
2.25.4