hc
2024-05-10 cde9070d9970eef1f7ec2360586c802a16230ad8
kernel/drivers/gpu/drm/omapdrm/omap_debugfs.c
....@@ -1,23 +1,14 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
34 * Author: Rob Clark <rob.clark@linaro.org>
4
- *
5
- * This program is free software; you can redistribute it and/or modify it
6
- * under the terms of the GNU General Public License version 2 as published by
7
- * the Free Software Foundation.
8
- *
9
- * This program is distributed in the hope that it will be useful, but WITHOUT
10
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12
- * more details.
13
- *
14
- * You should have received a copy of the GNU General Public License along with
15
- * this program. If not, see <http://www.gnu.org/licenses/>.
165 */
176
187 #include <linux/seq_file.h>
198
209 #include <drm/drm_crtc.h>
10
+#include <drm/drm_debugfs.h>
11
+#include <drm/drm_file.h>
2112 #include <drm/drm_fb_helper.h>
2213
2314 #include "omap_drv.h"
....@@ -89,31 +80,16 @@
8980 {"tiler_map", tiler_map_show, 0},
9081 };
9182
92
-int omap_debugfs_init(struct drm_minor *minor)
83
+void omap_debugfs_init(struct drm_minor *minor)
9384 {
94
- struct drm_device *dev = minor->dev;
95
- int ret;
96
-
97
- ret = drm_debugfs_create_files(omap_debugfs_list,
98
- ARRAY_SIZE(omap_debugfs_list),
99
- minor->debugfs_root, minor);
100
-
101
- if (ret) {
102
- dev_err(dev->dev, "could not install omap_debugfs_list\n");
103
- return ret;
104
- }
85
+ drm_debugfs_create_files(omap_debugfs_list,
86
+ ARRAY_SIZE(omap_debugfs_list),
87
+ minor->debugfs_root, minor);
10588
10689 if (dmm_is_available())
107
- ret = drm_debugfs_create_files(omap_dmm_debugfs_list,
108
- ARRAY_SIZE(omap_dmm_debugfs_list),
109
- minor->debugfs_root, minor);
110
-
111
- if (ret) {
112
- dev_err(dev->dev, "could not install omap_dmm_debugfs_list\n");
113
- return ret;
114
- }
115
-
116
- return ret;
90
+ drm_debugfs_create_files(omap_dmm_debugfs_list,
91
+ ARRAY_SIZE(omap_dmm_debugfs_list),
92
+ minor->debugfs_root, minor);
11793 }
11894
11995 #endif