aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_display.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2016-05-27 13:59:21 -0400
committerVille Syrjälä <ville.syrjala@linux.intel.com>2016-05-30 10:01:52 -0400
commit4d5d72b7f1a66e5500691dc5cf1e10effc7f6942 (patch)
treec9de072cd391db3f3262963d81e79549e8c1b1c5 /drivers/gpu/drm/i915/intel_display.c
parent72660ce0202601c092f83604326aa7cfd25b5a4d (diff)
drm/i915: Set crtc->name to "pipe A", "pipe B", etc.
v2: Fix intel_crtc leak on failure to allocate the name Use a local 'name' variable to make things easier v3: Pass the name as a function arguemnt to drm_crtc_init_with_planes() (Jani) v4: Pass the printf style format string to drm_crtc_init_with_planes() v5: Drop spurious code changes Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/1464371966-15190-4-git-send-email-ville.syrjala@linux.intel.com Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_display.c')
-rw-r--r--drivers/gpu/drm/i915/intel_display.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index f636fd37ef0b..476d76971817 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -14477,7 +14477,8 @@ static void intel_crtc_init(struct drm_device *dev, int pipe)
14477 goto fail; 14477 goto fail;
14478 14478
14479 ret = drm_crtc_init_with_planes(dev, &intel_crtc->base, primary, 14479 ret = drm_crtc_init_with_planes(dev, &intel_crtc->base, primary,
14480 cursor, &intel_crtc_funcs, NULL); 14480 cursor, &intel_crtc_funcs,
14481 "pipe %c", pipe_name(pipe));
14481 if (ret) 14482 if (ret)
14482 goto fail; 14483 goto fail;
14483 14484