On Thu, Oct 11, 2018 at 12:04:55PM +0200, Maarten Lankhorst wrote: > Instead of derferencing crtc->config, look at crtc_state. > > Signed-off-by: Maarten Lankhorst <maarten.lankhorst@xxxxxxxxxxxxxxx> Reviewed-by: Ville Syrjälä <ville.syrjala@xxxxxxxxxxxxxxx> > --- > drivers/gpu/drm/i915/intel_display.c | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c > index cbe70bc4d02d..ad1694c4d947 100644 > --- a/drivers/gpu/drm/i915/intel_display.c > +++ b/drivers/gpu/drm/i915/intel_display.c > @@ -4494,10 +4494,11 @@ void lpt_disable_iclkip(struct drm_i915_private *dev_priv) > } > > /* Program iCLKIP clock to the desired frequency */ > -static void lpt_program_iclkip(struct intel_crtc *crtc) > +static void lpt_program_iclkip(const struct intel_crtc_state *crtc_state) > { > + struct intel_crtc *crtc = to_intel_crtc(crtc_state->base.crtc); > struct drm_i915_private *dev_priv = to_i915(crtc->base.dev); > - int clock = crtc->config->base.adjusted_mode.crtc_clock; > + int clock = crtc_state->base.adjusted_mode.crtc_clock; > u32 divsel, phaseinc, auxdiv, phasedir = 0; > u32 temp; > > @@ -4806,7 +4807,7 @@ static void lpt_pch_enable(const struct intel_atomic_state *state, > > assert_pch_transcoder_disabled(dev_priv, PIPE_A); > > - lpt_program_iclkip(crtc); > + lpt_program_iclkip(crtc_state); > > /* Set transcoder timing. */ > ironlake_pch_transcoder_set_timings(crtc_state, PIPE_A); > -- > 2.19.0 > > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@xxxxxxxxxxxxxxxxxxxxx > https://lists.freedesktop.org/mailman/listinfo/intel-gfx -- Ville Syrjälä Intel _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx