drm/i915: Handle error-state modparams in dedicated functions
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 26 Oct 2017 17:36:57 +0000 (17:36 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 6 Nov 2017 14:22:10 +0000 (14:22 +0000)
commit84a20a8a360d5d3322d976672427fae800722038
tree5599f1fb092df240d031d557088aca7b140f1c05
parent0397ac13dd47bb0c99b10a11b756aafb72018fca
drm/i915: Handle error-state modparams in dedicated functions

Capturing and cleanup and modparams in error state requires
some macro tricks. Move that code into separated functions
for easier maintenance.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20171026173657.49648-3-michal.wajdeczko@intel.com
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_gpu_error.c