drm/arm: Replace instances of drm_dev_unref with drm_dev_put.
authorSrishti Sharma <srishtishar@gmail.com>
Fri, 29 Sep 2017 10:00:40 +0000 (15:30 +0530)
committerLiviu Dudau <Liviu.Dudau@arm.com>
Mon, 27 Nov 2017 09:51:42 +0000 (09:51 +0000)
Replace drm_dev_unref with drm_dev_put as it is more consistent
with kernel coding style. Done using the following semantic
patch by coccinelle.

@r@
expression e;
@@

-drm_dev_unref();
+drm_dev_put();

Signed-off-by: Srishti Sharma <srishtishar@gmail.com>
[split into hdlcd and malidp specific patches]
Signed-off-by: Liviu Dudau <liviu.dudau@arm.com>
drivers/gpu/drm/arm/hdlcd_drv.c

index 45b174fea36b20ef1d108ccabb159eb58668bf70..0afb53b1f4e92b516088b03e287b09936818dd43 100644 (file)
@@ -355,7 +355,7 @@ err_unload:
 err_free:
        drm_mode_config_cleanup(drm);
        dev_set_drvdata(dev, NULL);
-       drm_dev_unref(drm);
+       drm_dev_put(drm);
 
        return ret;
 }
@@ -380,7 +380,7 @@ static void hdlcd_drm_unbind(struct device *dev)
        pm_runtime_disable(drm->dev);
        of_reserved_mem_device_release(drm->dev);
        drm_mode_config_cleanup(drm);
-       drm_dev_unref(drm);
+       drm_dev_put(drm);
        drm->dev_private = NULL;
        dev_set_drvdata(dev, NULL);
 }