drm/sti: fix build warnings in sti_drv.c and sti_vtg.c files
authorVincent Abriou <vincent.abriou@st.com>
Mon, 20 Feb 2017 11:55:10 +0000 (12:55 +0100)
committerDave Airlie <airlied@redhat.com>
Thu, 23 Feb 2017 02:54:54 +0000 (12:54 +1000)
Fix compilation warning introduced by:
commit 0c7ff84f7f9d ("drm/sti: remove deprecated legacy vtg slave")
commit 5e60f595d6ca ("drm/sti: use atomic_helper for commit")

Signed-off-by: Vincent Abriou <vincent.abriou@st.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/sti/sti_drv.c
drivers/gpu/drm/sti/sti_vtg.c

index e6c1646b9c53ac2de3b26fd5bbc8679d150f3f8a..20fc0fbfa84919d3aa52f5f58cdc73a45832396e 100644 (file)
@@ -117,15 +117,6 @@ err:
        return ret;
 }
 
-static void sti_drm_dbg_cleanup(struct drm_minor *minor)
-{
-       drm_debugfs_remove_files(sti_drm_dbg_list,
-                                ARRAY_SIZE(sti_drm_dbg_list), minor);
-
-       drm_debugfs_remove_files((struct drm_info_list *)&sti_drm_fps_fops,
-                                1, minor);
-}
-
 static int sti_atomic_check(struct drm_device *dev,
                            struct drm_atomic_state *state)
 {
index 943bce56692ece94c09e9be53f034952b60c5ada..2dcba1d3a122827815b6d70f662e6116f37e49e7 100644 (file)
@@ -389,7 +389,6 @@ static irqreturn_t vtg_irq(int irq, void *arg)
 static int vtg_probe(struct platform_device *pdev)
 {
        struct device *dev = &pdev->dev;
-       struct device_node *np;
        struct sti_vtg *vtg;
        struct resource *res;
        int ret;