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

Commit 69c2565a authored by Dan Carpenter's avatar Dan Carpenter Committed by Liviu Dudau
Browse files

drm: ARM HDLCD - fix an error code



We accidentally return PTR_ERR(NULL) which is success instead of a
negative error code.

Fixes: 879e40bea6f2 ('drm: ARM HDLCD - get rid of devm_clk_put()')
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarLiviu Dudau <Liviu.Dudau@arm.com>
parent 61a6dcd7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -55,8 +55,9 @@ static int hdlcd_load(struct drm_device *drm, unsigned long flags)
	hdlcd->mmio = devm_ioremap_resource(drm->dev, res);
	if (IS_ERR(hdlcd->mmio)) {
		DRM_ERROR("failed to map control registers area\n");
		ret = PTR_ERR(hdlcd->mmio);
		hdlcd->mmio = NULL;
		return PTR_ERR(hdlcd->mmio);
		return ret;
	}

	version = hdlcd_read(hdlcd, HDLCD_REG_VERSION);