Skip to content

Commit 8bb652e

Browse files
committed
drm/sti: fix warning in build.
Signed-off-by: Dave Airlie <airlied@redhat.com>
1 parent 96b1b97 commit 8bb652e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/gpu/drm/sti/sti_compositor.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ static int sti_compositor_bind(struct device *dev, struct device *master,
119119
(1 << crtc) - 1, plane_type);
120120
plane++;
121121
break;
122+
case STI_BCK:
123+
break;
122124
}
123125

124126
/* The first planes are reserved for primary planes*/

‎drivers/gpu/drm/sti/sti_drm_crtc.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,6 @@ static int sti_drm_crtc_mode_set_base(struct drm_crtc *crtc, int x, int y,
151151
struct drm_framebuffer *old_fb)
152152
{
153153
struct sti_mixer *mixer = to_sti_mixer(crtc);
154-
struct device *dev = mixer->dev;
155-
struct sti_compositor *compo = dev_get_drvdata(dev);
156154
struct sti_layer *layer;
157155
unsigned int w, h;
158156
int ret;

0 commit comments

Comments
 (0)