drm/i915/uc: Add init/fini to to intel_uc_ops
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Fri, 10 Jan 2020 22:27:22 +0000 (22:27 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 11 Jan 2020 08:34:29 +0000 (08:34 +0000)
commitcc93f7b040c35e21bf6c477a37e042641c19e5ab
tree0bcbb5fc426ad0c97dde1240804d1f569bc4b5e8
parent39ddb8632035d318c905f41a6c574341504f91f6
drm/i915/uc: Add init/fini to to intel_uc_ops

uC preparation and cleanup steps are only meaningful if we are
running with uC enabled. Make these functions part of the uc_ops.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
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/20200110222723.14724-4-michal.wajdeczko@intel.com
drivers/gpu/drm/i915/gt/uc/intel_uc.c
drivers/gpu/drm/i915/gt/uc/intel_uc.h