drm/i915: access the PP_CONTROL reg only pre GEN5
authorImre Deak <imre.deak@intel.com>
Thu, 3 Sep 2015 13:24:35 +0000 (16:24 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 4 Sep 2015 08:18:45 +0000 (10:18 +0200)
commitc5796b7126b2497513bfa9a9341d02cb833d83d6
tree68ebcf4ebbfdc85abaead03082e32e15f32f81d7
parent01101fa7cc85fffc95798d1f67970dad96063fc6
drm/i915: access the PP_CONTROL reg only pre GEN5

This register exists only pre GEN5, but atm we also access it on
VLV/BXT/CHV. Prevent accessing it on these latter platforms.

Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_lvds.c