drm/i915: Use crtc->state in intel_fbdev_init_bios
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 4 Oct 2018 09:46:01 +0000 (11:46 +0200)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Fri, 5 Oct 2018 13:18:38 +0000 (15:18 +0200)
commit6e3d9dd0ae0aa4f0b6ccb273aa88c2e19e901cce
treee70c1a81a48da8a09e6a74af260944a7d66a6431
parent0e5fa64610f6f7fe40f46c6ac7981a1d22e957df
drm/i915: Use crtc->state in intel_fbdev_init_bios

fbdev init shouldn't race with userspace since it's called from
intel_modeset_init, so it's safe to dereference crtc->state and
assume nothing changed yet.

At least not more harmful than crtc->config.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181004094604.2646-11-maarten.lankhorst@linux.intel.com
drivers/gpu/drm/i915/intel_fbdev.c