drm/i915: fix PCH_NOP setting for non-PCH platforms
authorJani Nikula <jani.nikula@intel.com>
Fri, 8 Jun 2018 12:33:30 +0000 (15:33 +0300)
committerJani Nikula <jani.nikula@intel.com>
Mon, 11 Jun 2018 07:21:30 +0000 (10:21 +0300)
commit07ba0a82536e4955682b3b9077957ae1421d94bf
treeb376bb94f060250bcaba64c48d6ad8e99a921178
parent13d0464b3240429234c34b39b819fe6f088fc3c8
drm/i915: fix PCH_NOP setting for non-PCH platforms

Setting PCH type to PCH_NOP before checking whether we actually have a
PCH ends up returning true for HAS_PCH_SPLIT() on all non-PCH split
platforms. Fix this by using PCH_NOP only for platforms that actually
have a PCH.

Cc: Ville Syrjala <ville.syrjala@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180608123330.31003-6-jani.nikula@intel.com
drivers/gpu/drm/i915/i915_drv.c