drm/i915: Simplify intel_gpu_reset
authorRobert Beckett <robert.beckett@intel.com>
Tue, 3 Jun 2014 08:08:26 +0000 (10:08 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 11 Jun 2014 14:57:43 +0000 (16:57 +0200)
commit542c184f0ea08ee65794c1f0b044e1db4f8aab1b
tree243dcae5d6516b24b47a4c42ba1e37c72f59f0c5
parentd5ec26394c6633d82cc5e7ae6813206ba20fe8f5
drm/i915: Simplify intel_gpu_reset

Replaced ever growing switch for gen version with chained conditionals.
Futre gen's only need to add a new one if they require something different.

Reviewed-by: Damien Lespiau <damien.lespiau@intel.com>
Signed-off-by: Robert Beckett <robert.beckett@intel.com>
[danvet: Picked from internal tree and white-wash commit message.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_uncore.c