Skip to content

Commit

Permalink
drm/i915/huc: Remove unused intel_huc_fini()
Browse files Browse the repository at this point in the history
This function is no longer used. Its functionality is covered
by intel_uc_fini_fw().

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
  • Loading branch information
Michal Wajdeczko authored and Joonas Lahtinen committed Mar 31, 2017
1 parent 00bbb72 commit 4090823
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
18 changes: 0 additions & 18 deletions drivers/gpu/drm/i915/intel_huc.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,24 +250,6 @@ int intel_huc_init_hw(struct intel_huc *huc)
return err;
}

/**
* intel_huc_fini() - clean up resources allocated for HuC
* @dev_priv: the drm_i915_private device
*
* Cleans up by releasing the huc firmware GEM obj.
*/
void intel_huc_fini(struct drm_i915_private *dev_priv)
{
struct intel_uc_fw *huc_fw = &dev_priv->huc.fw;
struct drm_i915_gem_object *obj;

obj = fetch_and_zero(&huc_fw->obj);
if (obj)
i915_gem_object_put(obj);

huc_fw->fetch_status = INTEL_UC_FIRMWARE_NONE;
}

/**
* intel_guc_auth_huc() - authenticate ucode
* @dev_priv: the drm_i915_device
Expand Down
1 change: 0 additions & 1 deletion drivers/gpu/drm/i915/intel_uc.h
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,6 @@ static inline u32 guc_ggtt_offset(struct i915_vma *vma)

/* intel_huc.c */
void intel_huc_select_fw(struct intel_huc *huc);
void intel_huc_fini(struct drm_i915_private *dev_priv);
int intel_huc_init_hw(struct intel_huc *huc);
void intel_guc_auth_huc(struct drm_i915_private *dev_priv);

Expand Down

0 comments on commit 4090823

Please sign in to comment.