]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/i915: Handle drm-layer errors in intel_dp_add_mst_connector
authorJames Ausmus <james.ausmus@intel.com>
Fri, 13 Oct 2017 18:01:44 +0000 (11:01 -0700)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 17 Oct 2017 15:23:30 +0000 (18:23 +0300)
commit091a4f91942a4396c67e5747f5cb38c6396d1fc5
tree4126a3cef66b1154c15741c1e8d2b2b89a0d256c
parent134649ff3545f3b7b862c589e9accb400ace2474
drm/i915: Handle drm-layer errors in intel_dp_add_mst_connector

Make intel_dp_add_mst_connector handle error returns from the drm_ calls.
Add intel_connector_free to support cleanup on the error path.

v2: Rename new function to avoid confusion, and simplify error
paths (Ville)

v3: Indentation fixup, style fixes (Ville)

v4: Clarify usage of intel_connector_free, and fix usage of
intel_connector_free

v5: Rebase

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: James Ausmus <james.ausmus@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171013180144.15865-1-james.ausmus@intel.com
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_dp_mst.c
drivers/gpu/drm/i915/intel_drv.h