summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/intel_gvt.c
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2020-02-27 16:44:07 +0200
committerJani Nikula <jani.nikula@intel.com>2020-03-03 17:47:03 +0200
commitaff9e6f2496fc9ee5b748d2a50c9520754767021 (patch)
tree13451d92a94dcd8d70a31f8804e9396a68f889be /drivers/gpu/drm/i915/intel_gvt.c
parent9e859eb9d0f5e3ca553b53c4de149f0988814ad7 (diff)
drm/i915/gvt: make intel_gvt_active internal to intel_gvt
Nobody else uses it. Signed-off-by: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Link: https://patchwork.freedesktop.org/patch/msgid/20200227144408.24345-2-jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_gvt.c')
-rw-r--r--drivers/gpu/drm/i915/intel_gvt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_gvt.c b/drivers/gpu/drm/i915/intel_gvt.c
index 28753cf227a2..21b91313cc5d 100644
--- a/drivers/gpu/drm/i915/intel_gvt.c
+++ b/drivers/gpu/drm/i915/intel_gvt.c
@@ -125,6 +125,11 @@ bail:
return 0;
}
+static inline bool intel_gvt_active(struct drm_i915_private *dev_priv)
+{
+ return dev_priv->gvt;
+}
+
/**
* intel_gvt_driver_remove - cleanup GVT components when i915 driver is
* unbinding