summaryrefslogtreecommitdiff
path: root/drivers/staging/omapdrm/omap_drv.c
diff options
context:
space:
mode:
authorAndy Gross <andy.gross@ti.com>2011-12-15 21:05:17 -0600
committerGreg Kroah-Hartman <gregkh@suse.de>2011-12-16 10:59:26 -0800
commit6169a1488fe2f76e80bd49c18e41be5bbbf29f3f (patch)
tree671ba667b57529010a8d3ce9e0ced299d814c3c7 /drivers/staging/omapdrm/omap_drv.c
parentaf69592aa098ff8cd640e8109ba946db3c1cdb4e (diff)
staging: drm/omap: add debugfs support
Right now just a tiler_map file to dump a 2d map of which areas in tiler/dmm have pinned buffers (or reservations). In the future more could be added. Signed-off-by: Rob Clark <rob@ti.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/omapdrm/omap_drv.c')
-rw-r--r--drivers/staging/omapdrm/omap_drv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/staging/omapdrm/omap_drv.c b/drivers/staging/omapdrm/omap_drv.c
index 7ecf578f5526..602aa2dd49c8 100644
--- a/drivers/staging/omapdrm/omap_drv.c
+++ b/drivers/staging/omapdrm/omap_drv.c
@@ -726,6 +726,10 @@ static struct drm_driver omap_drm_driver = {
.irq_uninstall = dev_irq_uninstall,
.irq_handler = dev_irq_handler,
.reclaim_buffers = drm_core_reclaim_buffers,
+#ifdef CONFIG_DEBUG_FS
+ .debugfs_init = omap_debugfs_init,
+ .debugfs_cleanup = omap_debugfs_cleanup,
+#endif
.gem_init_object = omap_gem_init_object,
.gem_free_object = omap_gem_free_object,
.gem_vm_ops = &omap_gem_vm_ops,