Commit 86ed4e05 authored by Guido Gunther's avatar Guido Gunther Committed by Angus Ainslie (Purism)

imx-drm-core: drm_dev_put -> drm_dev_unref

Like in 1ef2917dSigned-off-by: Guido Gunther's avatarGuido Günther <guido.gunther@puri.sm>
parent 10b3ea61
......@@ -300,7 +300,7 @@ static int imx_drm_bind(struct device *dev)
imxdrm = devm_kzalloc(dev, sizeof(*imxdrm), GFP_KERNEL);
if (!imxdrm) {
ret = -ENOMEM;
goto err_unref;
goto err_put;
}
imxdrm->drm = drm;
......@@ -375,8 +375,8 @@ static int imx_drm_bind(struct device *dev)
component_unbind_all(drm->dev, drm);
err_kms:
drm_mode_config_cleanup(drm);
err_unref:
drm_dev_unref(drm);
err_put:
drm_dev_put(drm);
return ret;
}
......@@ -394,7 +394,7 @@ static void imx_drm_unbind(struct device *dev)
component_unbind_all(drm->dev, drm);
dev_set_drvdata(dev, NULL);
drm_dev_unref(drm);
drm_dev_put(drm);
}
static const struct component_master_ops imx_drm_ops = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment