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

Commit 1a9d71f8 authored by Wei Yongjun's avatar Wei Yongjun Committed by Daniel Vetter
Browse files

drm/arm: mali-dp: Remove redundant dev_err call in malidp_bind()



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

Signed-off-by: default avatarWei Yongjun <weiyj.lk@gmail.com>
Acked-by: default avatarLiviu Dudau <Liviu.Dudau@arm.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1469671753-12961-1-git-send-email-weiyj.lk@gmail.com
parent 8d762017
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -285,10 +285,8 @@ static int malidp_bind(struct device *dev)

	res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
	hwdev->regs = devm_ioremap_resource(dev, res);
	if (IS_ERR(hwdev->regs)) {
		DRM_ERROR("Failed to map control registers area\n");
	if (IS_ERR(hwdev->regs))
		return PTR_ERR(hwdev->regs);
	}

	hwdev->pclk = devm_clk_get(dev, "pclk");
	if (IS_ERR(hwdev->pclk))