Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[cris-mirror.git] / drivers / staging / greybus / debugfs.c
blob56e20c30feb5d2342176bba96c38af510cd6bc4a
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * Greybus debugfs code
5 * Copyright 2014 Google Inc.
6 * Copyright 2014 Linaro Ltd.
7 */
9 #include <linux/debugfs.h>
11 #include "greybus.h"
13 static struct dentry *gb_debug_root;
15 void __init gb_debugfs_init(void)
17 gb_debug_root = debugfs_create_dir("greybus", NULL);
20 void gb_debugfs_cleanup(void)
22 debugfs_remove_recursive(gb_debug_root);
23 gb_debug_root = NULL;
26 struct dentry *gb_debugfs_get(void)
28 return gb_debug_root;
30 EXPORT_SYMBOL_GPL(gb_debugfs_get);