summaryrefslogtreecommitdiff
path: root/drm/nouveau
diff options
context:
space:
mode:
authorKarol Herbst <nouveau@karolherbst.de>2015-07-31 00:35:42 +0200
committerBen Skeggs <bskeggs@redhat.com>2016-01-11 11:15:11 +1000
commitb0b33722271815a73be12301d7b1603f5ca545c2 (patch)
tree10a53312b6bbad7b0bff077b0fff005eb633a26d /drm/nouveau
parent45282ffd10e321fe5e24045f767a3e460a3bd194 (diff)
downloadnouveau-b0b33722271815a73be12301d7b1603f5ca545c2.tar.gz
debugfs: rename functions to indicate they are used inside drm
We will need our own debugfs_init and cleanup functions, because nouveau_drm isn't ready while the DRM ones are called by DRM. Signed-off-by: Karol Herbst <nouveau@karolherbst.de> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drm/nouveau')
-rw-r--r--drm/nouveau/nouveau_debugfs.c4
-rw-r--r--drm/nouveau/nouveau_debugfs.h9
-rw-r--r--drm/nouveau/nouveau_drm.c4
3 files changed, 9 insertions, 8 deletions
diff --git a/drm/nouveau/nouveau_debugfs.c b/drm/nouveau/nouveau_debugfs.c
index 598c722e5..5085c9818 100644
--- a/drm/nouveau/nouveau_debugfs.c
+++ b/drm/nouveau/nouveau_debugfs.c
@@ -81,7 +81,7 @@ nouveau_debugfs_create_file(struct drm_minor *minor,
}
int
-nouveau_debugfs_init(struct drm_minor *minor)
+nouveau_drm_debugfs_init(struct drm_minor *minor)
{
int i, ret;
@@ -99,7 +99,7 @@ nouveau_debugfs_init(struct drm_minor *minor)
}
void
-nouveau_debugfs_takedown(struct drm_minor *minor)
+nouveau_drm_debugfs_cleanup(struct drm_minor *minor)
{
int i;
diff --git a/drm/nouveau/nouveau_debugfs.h b/drm/nouveau/nouveau_debugfs.h
index a62af6fb5..42d65c9d1 100644
--- a/drm/nouveau/nouveau_debugfs.h
+++ b/drm/nouveau/nouveau_debugfs.h
@@ -4,16 +4,17 @@
#include <drm/drmP.h>
#if defined(CONFIG_DEBUG_FS)
-extern int nouveau_debugfs_init(struct drm_minor *);
-extern void nouveau_debugfs_takedown(struct drm_minor *);
+extern int nouveau_drm_debugfs_init(struct drm_minor *);
+extern void nouveau_drm_debugfs_cleanup(struct drm_minor *);
#else
static inline int
-nouveau_debugfs_init(struct drm_minor *minor)
+nouveau_drm_debugfs_init(struct drm_minor *minor)
{
return 0;
}
-static inline void nouveau_debugfs_takedown(struct drm_minor *minor)
+static inline void
+nouveau_drm_debugfs_cleanup(struct drm_minor *minor)
{
}
diff --git a/drm/nouveau/nouveau_drm.c b/drm/nouveau/nouveau_drm.c
index 5f038bba1..f75111138 100644
--- a/drm/nouveau/nouveau_drm.c
+++ b/drm/nouveau/nouveau_drm.c
@@ -933,8 +933,8 @@ driver_stub = {
.lastclose = nouveau_vga_lastclose,
#if defined(CONFIG_DEBUG_FS)
- .debugfs_init = nouveau_debugfs_init,
- .debugfs_cleanup = nouveau_debugfs_takedown,
+ .debugfs_init = nouveau_drm_debugfs_init,
+ .debugfs_cleanup = nouveau_drm_debugfs_cleanup,
#endif
.get_vblank_counter = drm_vblank_no_hw_counter,