drm/i915: Replace drm_dev_unref with drm_dev_put
authorThomas Zimmermann <tdz@users.sourceforge.net>
Mon, 18 Jun 2018 11:01:54 +0000 (13:01 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 28 Jun 2018 17:09:46 +0000 (19:09 +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 <tdz@users.sourceforge.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20180618110154.30462-6-tdz@users.sourceforge.net
drivers/gpu/drm/i915/selftests/huge_pages.c
drivers/gpu/drm/i915/selftests/i915_gem_context.c
drivers/gpu/drm/i915/selftests/i915_gem_dmabuf.c
drivers/gpu/drm/i915/selftests/i915_gem_evict.c
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c
drivers/gpu/drm/i915/selftests/i915_gem_object.c
drivers/gpu/drm/i915/selftests/i915_request.c
drivers/gpu/drm/i915/selftests/i915_vma.c
drivers/gpu/drm/i915/selftests/intel_breadcrumbs.c

index fbe4324116d72b42bb401dc9c1f89b9f03ab61d2..b5e87fcdcdae422e7726fbbca6a7c77edcbc43f1 100644 (file)
@@ -1724,7 +1724,7 @@ out_unlock:
 
        i915_modparams.enable_ppgtt = saved_ppgtt;
 
-       drm_dev_unref(&dev_priv->drm);
+       drm_dev_put(&dev_priv->drm);
 
        return err;
 }
index 90c3c36173ba12800365818b15e13bbcc505d907..c0c26fae45c7109ef4256a71c551dbb7359f05e4 100644 (file)
@@ -586,7 +586,7 @@ int i915_gem_context_mock_selftests(void)
 
        err = i915_subtests(tests, i915);
 
-       drm_dev_unref(&i915->drm);
+       drm_dev_put(&i915->drm);
        return err;
 }
 
index 89dc25a5a53b87182967d9603a842d5aa2300c3e..a7055b12e53ce140368837caf89fb29f046a9a34 100644 (file)
@@ -389,7 +389,7 @@ int i915_gem_dmabuf_mock_selftests(void)
 
        err = i915_subtests(tests, i915);
 
-       drm_dev_unref(&i915->drm);
+       drm_dev_put(&i915->drm);
        return err;
 }
 
index 2dc72a984d450c72bc863ca217af9b9f471f2e47..8059268800fa5d0fbcac7a69f7c07787f0d5d8ac 100644 (file)
@@ -490,7 +490,7 @@ int i915_gem_evict_mock_selftests(void)
        err = i915_subtests(tests, i915);
        mutex_unlock(&i915->drm.struct_mutex);
 
-       drm_dev_unref(&i915->drm);
+       drm_dev_put(&i915->drm);
        return err;
 }
 
index a4060238bef031ba3b4b09b1c91a60d7c17153ea..a28ee0cc6a633c7e842b916bcde3c18420d1c7bd 100644 (file)
@@ -1644,7 +1644,7 @@ int i915_gem_gtt_mock_selftests(void)
        err = i915_subtests(tests, i915);
        mutex_unlock(&i915->drm.struct_mutex);
 
-       drm_dev_unref(&i915->drm);
+       drm_dev_put(&i915->drm);
        return err;
 }
 
index 2b2dde94526f70fdfa399c06f31f4ac93b6c9dd0..549707b9d738876f109dd4ae0a4fce3f4c2ba344 100644 (file)
@@ -586,7 +586,7 @@ int i915_gem_object_mock_selftests(void)
 
        err = i915_subtests(tests, i915);
 
-       drm_dev_unref(&i915->drm);
+       drm_dev_put(&i915->drm);
        return err;
 }
 
index 63cd9486cc13930352c9bba1e175fa190c2fe66b..521ae4a90ddfb9d38204c8c728772a9554fa503a 100644 (file)
@@ -262,7 +262,7 @@ int i915_request_mock_selftests(void)
                return -ENOMEM;
 
        err = i915_subtests(tests, i915);
-       drm_dev_unref(&i915->drm);
+       drm_dev_put(&i915->drm);
 
        return err;
 }
index 8400a8cc5cf20d49d7025e2274949673ffd423a7..ffa74290e0547a77f762a890b992277f2459419f 100644 (file)
@@ -733,7 +733,7 @@ int i915_vma_mock_selftests(void)
        err = i915_subtests(tests, i915);
        mutex_unlock(&i915->drm.struct_mutex);
 
-       drm_dev_unref(&i915->drm);
+       drm_dev_put(&i915->drm);
        return err;
 }
 
index d6926e7820e5602dfcfdb1852490126c76ceede2..f03b407fdbe24b8170579f5bd69c6c5a6b5d71ce 100644 (file)
@@ -464,7 +464,7 @@ int intel_breadcrumbs_mock_selftests(void)
                return -ENOMEM;
 
        err = i915_subtests(tests, i915->engine[RCS]);
-       drm_dev_unref(&i915->drm);
+       drm_dev_put(&i915->drm);
 
        return err;
 }