drm/i915/icl: fix icl_unmap/map_plls_to_ports
authorMahesh Kumar <[email protected]>
Fri, 25 May 2018 15:52:38 +0000 (08:52 -0700)
committerPaulo Zanoni <[email protected]>
Fri, 1 Jun 2018 23:02:43 +0000 (16:02 -0700)
commitc46ef57d2008e5195f086a538550488b49644db7
tree434b83d7b1ed12c804a564990c4cc43b09a3e9d1
parent95c778daecb5cd5aafcc09ebf1353fdc759b6fd7
drm/i915/icl: fix icl_unmap/map_plls_to_ports

All connectors may not have best_encoder attached, so don't dereference
encoder pointer for each connector.

Fixes: c27e917e2bda ("drm/i915/icl: add basic support for the ICL clocks")
Reviewed-by: Lucas De Marchi <[email protected]>
Signed-off-by: Mahesh Kumar <[email protected]>
Signed-off-by: Paulo Zanoni <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/intel_ddi.c