mirror of https://gitee.com/openkylin/linux.git
drm/i915/huc: Prefer intel_huc_is_supported
No need to dance with intel_uc_supports_huc(uc) as we can directly use intel_huc_is_supported(huc) Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Link: https://patchwork.freedesktop.org/patch/msgid/20190804195052.31140-3-michal.wajdeczko@intel.com
This commit is contained in:
parent
c8be1a5fc5
commit
2afc794c3e
|
@ -187,7 +187,7 @@ int intel_huc_check_status(struct intel_huc *huc)
|
||||||
intel_wakeref_t wakeref;
|
intel_wakeref_t wakeref;
|
||||||
u32 status = 0;
|
u32 status = 0;
|
||||||
|
|
||||||
if (!intel_uc_supports_huc(>->uc))
|
if (!intel_huc_is_supported(huc))
|
||||||
return -ENODEV;
|
return -ENODEV;
|
||||||
|
|
||||||
with_intel_runtime_pm(>->i915->runtime_pm, wakeref)
|
with_intel_runtime_pm(>->i915->runtime_pm, wakeref)
|
||||||
|
|
Loading…
Reference in New Issue