Skip to content

Commit

Permalink
drm/i915/gvt: make intel_gvt_active internal to intel_gvt
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Jani Nikula committed Mar 3, 2020
1 parent 9e859eb commit aff9e6f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/gpu/drm/i915/i915_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
5 changes: 5 additions & 0 deletions drivers/gpu/drm/i915/intel_gvt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit aff9e6f

Please sign in to comment.