drm/i915/dsi: Call drm_connector_cleanup on vlv_dsi_init error exit path
authorHans de Goede <hdegoede@redhat.com>
Fri, 24 May 2019 16:35:18 +0000 (18:35 +0200)
committerHans de Goede <hdegoede@redhat.com>
Mon, 27 May 2019 08:55:33 +0000 (10:55 +0200)
commit5c27de1df85066f2801f1ec406e641fdde178151
tree2bbaa9183341473ee5f67dce465fa6a5064df689
parentc0a74c732568ad347f7b3de281922808dab30504
drm/i915/dsi: Call drm_connector_cleanup on vlv_dsi_init error exit path

If we exit vlv_dsi_init() because we failed to find a fixed_mode, then
we've already called drm_connector_init() and we should call
drm_connector_cleanup() to unregister the connector object.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190524163518.17545-1-hdegoede@redhat.com
drivers/gpu/drm/i915/vlv_dsi.c