drm/i915: Use HAS_CSR instead of gen number on DMC load.
authorRodrigo Vivi <rodrigo.vivi@intel.com>
Fri, 9 Jun 2017 22:26:11 +0000 (15:26 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 12 Jun 2017 16:45:30 +0000 (09:45 -0700)
commit1a7399aa58e93c65d3b5bf969ca1e69c81fb2535
tree4cd6e42fd9dbd3bedbb15e0d639d0cfaa88ec3e7
parentcebfcead63de6f6b1414c3b58ee554b5fc8e103c
drm/i915: Use HAS_CSR instead of gen number on DMC load.

Since we have HAS_CSR tied to the platform definition
let's use this instead of checking per platform.

One less thing to worry when adding support to new platforms.

Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Animesh Manna<animesh.manna@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1497047175-27250-14-git-send-email-rodrigo.vivi@intel.com
drivers/gpu/drm/i915/intel_csr.c