Commit a24362ea authored by Thomas Zimmermann's avatar Thomas Zimmermann Committed by Daniel Vetter

drm/i915: Replace drm_dev_unref with drm_dev_put

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: default avatarThomas Zimmermann <tdz@users.sourceforge.net>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20180618110154.30462-6-tdz@users.sourceforge.net
parent 01159b47
...@@ -1724,7 +1724,7 @@ int i915_gem_huge_page_mock_selftests(void) ...@@ -1724,7 +1724,7 @@ int i915_gem_huge_page_mock_selftests(void)
i915_modparams.enable_ppgtt = saved_ppgtt; i915_modparams.enable_ppgtt = saved_ppgtt;
drm_dev_unref(&dev_priv->drm); drm_dev_put(&dev_priv->drm);
return err; return err;
} }
......
...@@ -586,7 +586,7 @@ int i915_gem_context_mock_selftests(void) ...@@ -586,7 +586,7 @@ int i915_gem_context_mock_selftests(void)
err = i915_subtests(tests, i915); err = i915_subtests(tests, i915);
drm_dev_unref(&i915->drm); drm_dev_put(&i915->drm);
return err; return err;
} }
......
...@@ -389,7 +389,7 @@ int i915_gem_dmabuf_mock_selftests(void) ...@@ -389,7 +389,7 @@ int i915_gem_dmabuf_mock_selftests(void)
err = i915_subtests(tests, i915); err = i915_subtests(tests, i915);
drm_dev_unref(&i915->drm); drm_dev_put(&i915->drm);
return err; return err;
} }
......
...@@ -490,7 +490,7 @@ int i915_gem_evict_mock_selftests(void) ...@@ -490,7 +490,7 @@ int i915_gem_evict_mock_selftests(void)
err = i915_subtests(tests, i915); err = i915_subtests(tests, i915);
mutex_unlock(&i915->drm.struct_mutex); mutex_unlock(&i915->drm.struct_mutex);
drm_dev_unref(&i915->drm); drm_dev_put(&i915->drm);
return err; return err;
} }
......
...@@ -1644,7 +1644,7 @@ int i915_gem_gtt_mock_selftests(void) ...@@ -1644,7 +1644,7 @@ int i915_gem_gtt_mock_selftests(void)
err = i915_subtests(tests, i915); err = i915_subtests(tests, i915);
mutex_unlock(&i915->drm.struct_mutex); mutex_unlock(&i915->drm.struct_mutex);
drm_dev_unref(&i915->drm); drm_dev_put(&i915->drm);
return err; return err;
} }
......
...@@ -586,7 +586,7 @@ int i915_gem_object_mock_selftests(void) ...@@ -586,7 +586,7 @@ int i915_gem_object_mock_selftests(void)
err = i915_subtests(tests, i915); err = i915_subtests(tests, i915);
drm_dev_unref(&i915->drm); drm_dev_put(&i915->drm);
return err; return err;
} }
......
...@@ -262,7 +262,7 @@ int i915_request_mock_selftests(void) ...@@ -262,7 +262,7 @@ int i915_request_mock_selftests(void)
return -ENOMEM; return -ENOMEM;
err = i915_subtests(tests, i915); err = i915_subtests(tests, i915);
drm_dev_unref(&i915->drm); drm_dev_put(&i915->drm);
return err; return err;
} }
......
...@@ -733,7 +733,7 @@ int i915_vma_mock_selftests(void) ...@@ -733,7 +733,7 @@ int i915_vma_mock_selftests(void)
err = i915_subtests(tests, i915); err = i915_subtests(tests, i915);
mutex_unlock(&i915->drm.struct_mutex); mutex_unlock(&i915->drm.struct_mutex);
drm_dev_unref(&i915->drm); drm_dev_put(&i915->drm);
return err; return err;
} }
...@@ -464,7 +464,7 @@ int intel_breadcrumbs_mock_selftests(void) ...@@ -464,7 +464,7 @@ int intel_breadcrumbs_mock_selftests(void)
return -ENOMEM; return -ENOMEM;
err = i915_subtests(tests, i915->engine[RCS]); err = i915_subtests(tests, i915->engine[RCS]);
drm_dev_unref(&i915->drm); drm_dev_put(&i915->drm);
return err; return err;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment