summaryrefslogtreecommitdiff
path: root/drivers/gpu/host1x/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/host1x/debug.c')
-rw-r--r--drivers/gpu/host1x/debug.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/drivers/gpu/host1x/debug.c b/drivers/gpu/host1x/debug.c
index ee3d12b51c50..3ec7d77de24d 100644
--- a/drivers/gpu/host1x/debug.c
+++ b/drivers/gpu/host1x/debug.c
@@ -96,6 +96,7 @@ static void show_all(struct host1x *m, struct output *o)
show_channels(ch, o, true);
}
+#ifdef CONFIG_DEBUG_FS
static void show_all_no_fifo(struct host1x *host1x, struct output *o)
{
struct host1x_channel *ch;
@@ -152,7 +153,7 @@ static const struct file_operations host1x_debug_fops = {
.release = single_release,
};
-static void host1x_debugfs_init(struct host1x *host1x)
+void host1x_debug_init(struct host1x *host1x)
{
struct dentry *de = debugfs_create_dir("tegra-host1x", NULL);
@@ -179,22 +180,18 @@ static void host1x_debugfs_init(struct host1x *host1x)
&host1x_debug_force_timeout_channel);
}
-static void host1x_debugfs_exit(struct host1x *host1x)
+void host1x_debug_deinit(struct host1x *host1x)
{
debugfs_remove_recursive(host1x->debugfs);
}
-
+#else
void host1x_debug_init(struct host1x *host1x)
{
- if (IS_ENABLED(CONFIG_DEBUG_FS))
- host1x_debugfs_init(host1x);
}
-
void host1x_debug_deinit(struct host1x *host1x)
{
- if (IS_ENABLED(CONFIG_DEBUG_FS))
- host1x_debugfs_exit(host1x);
}
+#endif
void host1x_debug_dump(struct host1x *host1x)
{