]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
drm/i915/huc: Prefer intel_huc_is_supported
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Sun, 4 Aug 2019 19:50:50 +0000 (19:50 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 5 Aug 2019 17:25:25 +0000 (18:25 +0100)
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
drivers/gpu/drm/i915/gt/uc/intel_huc.c

index ef54053c5ef92091de8e46f2149114c87a470b23..66b2d5fdb31707b20620b32c0a4eed13668efff1 100644 (file)
@@ -187,7 +187,7 @@ int intel_huc_check_status(struct intel_huc *huc)
        intel_wakeref_t wakeref;
        u32 status = 0;
 
-       if (!intel_uc_supports_huc(&gt->uc))
+       if (!intel_huc_is_supported(huc))
                return -ENODEV;
 
        with_intel_runtime_pm(&gt->i915->runtime_pm, wakeref)