From 8bb652eb38e50ce4e8709fbfd9e73f9d11ac3ff6 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Tue, 5 Aug 2014 09:41:42 +1000 Subject: [PATCH] drm/sti: fix warning in build. Signed-off-by: Dave Airlie --- drivers/gpu/drm/sti/sti_compositor.c | 2 ++ drivers/gpu/drm/sti/sti_drm_crtc.c | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/sti/sti_compositor.c b/drivers/gpu/drm/sti/sti_compositor.c index 770a725efa20..390d93e9a06c 100644 --- a/drivers/gpu/drm/sti/sti_compositor.c +++ b/drivers/gpu/drm/sti/sti_compositor.c @@ -119,6 +119,8 @@ static int sti_compositor_bind(struct device *dev, struct device *master, (1 << crtc) - 1, plane_type); plane++; break; + case STI_BCK: + break; } /* The first planes are reserved for primary planes*/ diff --git a/drivers/gpu/drm/sti/sti_drm_crtc.c b/drivers/gpu/drm/sti/sti_drm_crtc.c index 6eba648cf7b3..d2ae0c0e13be 100644 --- a/drivers/gpu/drm/sti/sti_drm_crtc.c +++ b/drivers/gpu/drm/sti/sti_drm_crtc.c @@ -151,8 +151,6 @@ static int sti_drm_crtc_mode_set_base(struct drm_crtc *crtc, int x, int y, struct drm_framebuffer *old_fb) { struct sti_mixer *mixer = to_sti_mixer(crtc); - struct device *dev = mixer->dev; - struct sti_compositor *compo = dev_get_drvdata(dev); struct sti_layer *layer; unsigned int w, h; int ret; -- 2.20.1