Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7725936e authored by Wei Yongjun's avatar Wei Yongjun Committed by Sean Paul
Browse files

drm/arc: Remove redundant dev_err call in arcpgu_load()



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

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarSean Paul <seanpaul@chromium.org>
parent ee29a9ea
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -103,10 +103,8 @@ static int arcpgu_load(struct drm_device *drm)

	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
	arcpgu->regs = devm_ioremap_resource(&pdev->dev, res);
	if (IS_ERR(arcpgu->regs)) {
		dev_err(drm->dev, "Could not remap IO mem\n");
	if (IS_ERR(arcpgu->regs))
		return PTR_ERR(arcpgu->regs);
	}

	dev_info(drm->dev, "arc_pgu ID: 0x%x\n",
		 arc_pgu_read(arcpgu, ARCPGU_REG_ID));