drm/i915/uc: Use GuC firmware status helper
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 22 May 2019 19:32:00 +0000 (19:32 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 23 May 2019 20:58:36 +0000 (21:58 +0100)
commitf1e6b336bafae78ca9a94114a73a4fda5f29c73f
treed08bcaf5d27de403eccef7bd7691afe156f8e338
parent89195bab5d8c540e565b47e2ad6ebbbe420be640
drm/i915/uc: Use GuC firmware status helper

We already have helper function for checking GuC firmware
load status. Replace existing open-coded checks.

v2: drop redundant USES_GUC check

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@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/20190522193203.23932-7-michal.wajdeczko@intel.com
drivers/gpu/drm/i915/intel_uc.c