drm/omap: Remove omap_debugfs_cleanup()
authorNoralf Trønnes <noralf@tronnes.org>
Thu, 26 Jan 2017 22:56:13 +0000 (23:56 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 27 Jan 2017 14:25:53 +0000 (15:25 +0100)
drm_debugfs_cleanup() now removes all minor->debugfs_list entries
automatically, so the drm_driver.debugfs_cleanup callback is not
needed.

Cc: tomi.valkeinen@ti.com
Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20170126225621.12314-12-noralf@tronnes.org
drivers/gpu/drm/omapdrm/omap_debugfs.c
drivers/gpu/drm/omapdrm/omap_drv.c
drivers/gpu/drm/omapdrm/omap_drv.h

index bf65862daf62e68a62ff854c8c1ba68ad00110ba..19b716745623ac9f9539307149e634b1efaed454 100644 (file)
@@ -123,13 +123,4 @@ int omap_debugfs_init(struct drm_minor *minor)
        return ret;
 }
 
-void omap_debugfs_cleanup(struct drm_minor *minor)
-{
-       drm_debugfs_remove_files(omap_debugfs_list,
-                       ARRAY_SIZE(omap_debugfs_list), minor);
-       if (dmm_is_available())
-               drm_debugfs_remove_files(omap_dmm_debugfs_list,
-                               ARRAY_SIZE(omap_dmm_debugfs_list), minor);
-}
-
 #endif
index 4fd2e1799a88b6fa7319d0097effab1a933dbf27..42330e0c3324d04946a723220ec62dcac724eba4 100644 (file)
@@ -812,7 +812,6 @@ static struct drm_driver omap_drm_driver = {
        .disable_vblank = omap_irq_disable_vblank,
 #ifdef CONFIG_DEBUG_FS
        .debugfs_init = omap_debugfs_init,
-       .debugfs_cleanup = omap_debugfs_cleanup,
 #endif
        .prime_handle_to_fd = drm_gem_prime_handle_to_fd,
        .prime_fd_to_handle = drm_gem_prime_fd_to_handle,
index 7d9dd5400cefd7f780515bc55a944657026513a4..8b113ba39da09fbe900b4ee7e0717d5056bfe21c 100644 (file)
@@ -116,7 +116,6 @@ struct omap_drm_private {
 
 #ifdef CONFIG_DEBUG_FS
 int omap_debugfs_init(struct drm_minor *minor);
-void omap_debugfs_cleanup(struct drm_minor *minor);
 void omap_framebuffer_describe(struct drm_framebuffer *fb, struct seq_file *m);
 void omap_gem_describe(struct drm_gem_object *obj, struct seq_file *m);
 void omap_gem_describe_objects(struct list_head *list, struct seq_file *m);