WIP FPC-III support
[linux/fpc-iii.git] / drivers / hwtracing / intel_th / debug.c
blobff79063118a0e79705caa20f441e9245d9cbfa3e
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * Intel(R) Trace Hub driver debugging
5 * Copyright (C) 2014-2015 Intel Corporation.
6 */
8 #include <linux/types.h>
9 #include <linux/device.h>
10 #include <linux/debugfs.h>
12 #include "intel_th.h"
13 #include "debug.h"
15 struct dentry *intel_th_dbg;
17 void intel_th_debug_init(void)
19 intel_th_dbg = debugfs_create_dir("intel_th", NULL);
20 if (IS_ERR(intel_th_dbg))
21 intel_th_dbg = NULL;
24 void intel_th_debug_done(void)
26 debugfs_remove(intel_th_dbg);
27 intel_th_dbg = NULL;