xref: /openbmc/linux/drivers/gpu/drm/ttm/ttm_module.c (revision ed89fff9)
1 /* SPDX-License-Identifier: GPL-2.0 OR MIT */
2 /**************************************************************************
3  *
4  * Copyright (c) 2006-2009 VMware, Inc., Palo Alto, CA., USA
5  * All Rights Reserved.
6  *
7  * Permission is hereby granted, free of charge, to any person obtaining a
8  * copy of this software and associated documentation files (the
9  * "Software"), to deal in the Software without restriction, including
10  * without limitation the rights to use, copy, modify, merge, publish,
11  * distribute, sub license, and/or sell copies of the Software, and to
12  * permit persons to whom the Software is furnished to do so, subject to
13  * the following conditions:
14  *
15  * The above copyright notice and this permission notice (including the
16  * next paragraph) shall be included in all copies or substantial portions
17  * of the Software.
18  *
19  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21  * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
22  * THE COPYRIGHT HOLDERS, AUTHORS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM,
23  * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
24  * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
25  * USE OR OTHER DEALINGS IN THE SOFTWARE.
26  *
27  **************************************************************************/
28 /*
29  * Authors: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
30  * 	    Jerome Glisse
31  */
32 #include <linux/module.h>
33 #include <linux/device.h>
34 #include <linux/sched.h>
35 #include <linux/debugfs.h>
36 #include <drm/drm_sysfs.h>
37 
38 #include "ttm_module.h"
39 
40 struct dentry *ttm_debugfs_root;
41 
42 static int __init ttm_init(void)
43 {
44 	ttm_debugfs_root = debugfs_create_dir("ttm", NULL);
45 	return 0;
46 }
47 
48 static void __exit ttm_exit(void)
49 {
50 	debugfs_remove(ttm_debugfs_root);
51 }
52 
53 module_init(ttm_init);
54 module_exit(ttm_exit);
55 
56 MODULE_AUTHOR("Thomas Hellstrom, Jerome Glisse");
57 MODULE_DESCRIPTION("TTM memory manager subsystem (for DRM device)");
58 MODULE_LICENSE("GPL and additional rights");
59