]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
drm/i915: Fix plane init failure paths
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 21 Mar 2016 14:43:22 +0000 (14:43 +0000)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 1 Apr 2016 20:24:21 +0000 (23:24 +0300)
commitfca0ce2a5caf6ae7d9d8510fb87ae6195b40057a
treefa461b7d44e1896ffa8160b95f43da9d68a3acfc
parent5593946921834a63d89c595ef8459c50d30f5438
drm/i915: Fix plane init failure paths

Deal with errors from drm_universal_plane_init() in primary and cursor
plane init paths (sprites were already covered). Also make the code
neater by using goto for error handling.

v2: Rebased due to drm_universal_plane_init() 'name' parameter
v3: Another rebase due to s/""/NULL/
v4: Rebased on drm-nightly (Matthew Auld)
v5: Fix email address (Matthew Auld)

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1458571402-32749-1-git-send-email-matthew.auld@intel.com
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_sprite.c