diff options
-rw-r--r-- | drivers/gpu/drm/tilcdc/tilcdc_drv.c | 12 | ||||
-rw-r--r-- | drivers/gpu/drm/tilcdc/tilcdc_drv.h | 2 |
2 files changed, 0 insertions, 14 deletions
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c index ec15585c7a27..919294a735fe 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_drv.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.c | |||
@@ -539,17 +539,6 @@ static int tilcdc_debugfs_init(struct drm_minor *minor) | |||
539 | 539 | ||
540 | return ret; | 540 | return ret; |
541 | } | 541 | } |
542 | |||
543 | static void tilcdc_debugfs_cleanup(struct drm_minor *minor) | ||
544 | { | ||
545 | struct tilcdc_module *mod; | ||
546 | drm_debugfs_remove_files(tilcdc_debugfs_list, | ||
547 | ARRAY_SIZE(tilcdc_debugfs_list), minor); | ||
548 | |||
549 | list_for_each_entry(mod, &module_list, list) | ||
550 | if (mod->funcs->debugfs_cleanup) | ||
551 | mod->funcs->debugfs_cleanup(mod, minor); | ||
552 | } | ||
553 | #endif | 542 | #endif |
554 | 543 | ||
555 | static const struct file_operations fops = { | 544 | static const struct file_operations fops = { |
@@ -589,7 +578,6 @@ static struct drm_driver tilcdc_driver = { | |||
589 | .gem_prime_mmap = drm_gem_cma_prime_mmap, | 578 | .gem_prime_mmap = drm_gem_cma_prime_mmap, |
590 | #ifdef CONFIG_DEBUG_FS | 579 | #ifdef CONFIG_DEBUG_FS |
591 | .debugfs_init = tilcdc_debugfs_init, | 580 | .debugfs_init = tilcdc_debugfs_init, |
592 | .debugfs_cleanup = tilcdc_debugfs_cleanup, | ||
593 | #endif | 581 | #endif |
594 | .fops = &fops, | 582 | .fops = &fops, |
595 | .name = "tilcdc", | 583 | .name = "tilcdc", |
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.h b/drivers/gpu/drm/tilcdc/tilcdc_drv.h index 0e71daf5b5cb..8caa11bc7aec 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_drv.h +++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.h | |||
@@ -111,8 +111,6 @@ struct tilcdc_module_ops { | |||
111 | #ifdef CONFIG_DEBUG_FS | 111 | #ifdef CONFIG_DEBUG_FS |
112 | /* create debugfs nodes (can be NULL): */ | 112 | /* create debugfs nodes (can be NULL): */ |
113 | int (*debugfs_init)(struct tilcdc_module *mod, struct drm_minor *minor); | 113 | int (*debugfs_init)(struct tilcdc_module *mod, struct drm_minor *minor); |
114 | /* cleanup debugfs nodes (can be NULL): */ | ||
115 | void (*debugfs_cleanup)(struct tilcdc_module *mod, struct drm_minor *minor); | ||
116 | #endif | 114 | #endif |
117 | }; | 115 | }; |
118 | 116 | ||