]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/imx: Replace drm_dev_unref with drm_dev_put
authorThomas Zimmermann <tzimmermann@suse.de>
Tue, 17 Jul 2018 08:33:49 +0000 (10:33 +0200)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 17 Jul 2018 10:11:03 +0000 (12:11 +0200)
This patch unifies the naming of DRM functions for reference counting
of struct drm_device. The resulting code is more aligned with the rest
of the Linux kernel interfaces.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/drm/imx/imx-drm-core.c

index 1d053bbefc02c694af593008ae19312a7826c994..c895fe78fb48c5f9e8eeaf00a5090a385ac6f63c 100644 (file)
@@ -229,7 +229,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;
@@ -306,8 +306,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;
 }
@@ -327,7 +327,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 = {