mirror of https://gitee.com/openkylin/linux.git
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
This commit is contained in:
parent
9e859eb9d0
commit
aff9e6f249
|
@ -1672,11 +1672,6 @@ void i915_driver_remove(struct drm_i915_private *i915);
|
|||
int i915_resume_switcheroo(struct drm_i915_private *i915);
|
||||
int i915_suspend_switcheroo(struct drm_i915_private *i915, pm_message_t state);
|
||||
|
||||
static inline bool intel_gvt_active(struct drm_i915_private *dev_priv)
|
||||
{
|
||||
return dev_priv->gvt;
|
||||
}
|
||||
|
||||
int i915_getparam_ioctl(struct drm_device *dev, void *data,
|
||||
struct drm_file *file_priv);
|
||||
|
||||
|
|
|
@ -125,6 +125,11 @@ int intel_gvt_init(struct drm_i915_private *dev_priv)
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue