drm/sti: fix warning in build.
authorDave Airlie <airlied@redhat.com>
Mon, 4 Aug 2014 23:41:42 +0000 (09:41 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 4 Aug 2014 23:41:42 +0000 (09:41 +1000)
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/sti/sti_compositor.c
drivers/gpu/drm/sti/sti_drm_crtc.c

index 770a725efa20413d69c4edc5eb7bb1359b86c4fe..390d93e9a06c18971175c0bd6164d05f2b0bdbed 100644 (file)
@@ -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*/
index 6eba648cf7b3cb9517db61f2f17296895f22cd0c..d2ae0c0e13be6695a109bdea7ea107a35c8654f3 100644 (file)
@@ -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;