Skip to content
Snippets Groups Projects
Commit 86ed4e05 authored by Guido Gunther's avatar Guido Gunther :zzz: Committed by Angus Ainslie (Purism)
Browse files

imx-drm-core: drm_dev_put -> drm_dev_unref


Like in 1ef2917d

Signed-off-by: default avatarGuido Günther <guido.gunther@puri.sm>
parent 10b3ea61
No related branches found
No related tags found
6 merge requests!101Adjust the pin control register values of each SDA and SCL pin,!82USB: Add USB_QUIRK_RESET_RESUME quirk for Microchip USB2642,!71Make I2C1 operate at 387kHz,!66Purism redpine driver,!54Drop capacity,!44WIP power: bq25890_charger: Indicate charging state
......@@ -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 = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment