drm/i915/dvo: Actually initialize the DVO encoder type
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 18 Nov 2022 10:55:19 +0000 (12:55 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Sat, 19 Nov 2022 09:07:59 +0000 (11:07 +0200)
commit6ebf5caf1fae75634b0564152958ecb433cfa952
tree9bbd853bb2ec8bf181f7ce837d262bcc8b96fb2d
parent3b5130a68df1a513713b027d03125ba11ebc2975
drm/i915/dvo: Actually initialize the DVO encoder type

We call drm_encoder_init() before determining the correct
encoder type, thus we always end up with DRM_MODE_ENCODER_NONE.
Determine the correct encoder type earlier.

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