|
@@ -229,7 +229,7 @@ static int imx_drm_bind(struct device *dev)
|
|
imxdrm = devm_kzalloc(dev, sizeof(*imxdrm), GFP_KERNEL);
|
|
imxdrm = devm_kzalloc(dev, sizeof(*imxdrm), GFP_KERNEL);
|
|
if (!imxdrm) {
|
|
if (!imxdrm) {
|
|
ret = -ENOMEM;
|
|
ret = -ENOMEM;
|
|
- goto err_unref;
|
|
|
|
|
|
+ goto err_put;
|
|
}
|
|
}
|
|
|
|
|
|
imxdrm->drm = drm;
|
|
imxdrm->drm = drm;
|
|
@@ -306,8 +306,8 @@ err_unbind:
|
|
component_unbind_all(drm->dev, drm);
|
|
component_unbind_all(drm->dev, drm);
|
|
err_kms:
|
|
err_kms:
|
|
drm_mode_config_cleanup(drm);
|
|
drm_mode_config_cleanup(drm);
|
|
-err_unref:
|
|
|
|
- drm_dev_unref(drm);
|
|
|
|
|
|
+err_put:
|
|
|
|
+ drm_dev_put(drm);
|
|
|
|
|
|
return ret;
|
|
return ret;
|
|
}
|
|
}
|
|
@@ -327,7 +327,7 @@ static void imx_drm_unbind(struct device *dev)
|
|
component_unbind_all(drm->dev, drm);
|
|
component_unbind_all(drm->dev, drm);
|
|
dev_set_drvdata(dev, NULL);
|
|
dev_set_drvdata(dev, NULL);
|
|
|
|
|
|
- drm_dev_unref(drm);
|
|
|
|
|
|
+ drm_dev_put(drm);
|
|
}
|
|
}
|
|
|
|
|
|
static const struct component_master_ops imx_drm_ops = {
|
|
static const struct component_master_ops imx_drm_ops = {
|