forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/gpu/drm/pl111/pl111_debugfs.c
....@@ -1,15 +1,13 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright © 2017 Broadcom
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License version 2 as
6
- * published by the Free Software Foundation.
74 */
85
9
-#include <linux/amba/clcd-regs.h>
106 #include <linux/seq_file.h>
7
+
118 #include <drm/drm_debugfs.h>
12
-#include <drm/drmP.h>
9
+#include <drm/drm_file.h>
10
+
1311 #include "pl111_drm.h"
1412
1513 #define REGDEF(reg) { reg, #reg }
....@@ -52,10 +50,10 @@
5250 {"regs", pl111_debugfs_regs, 0},
5351 };
5452
55
-int
53
+void
5654 pl111_debugfs_init(struct drm_minor *minor)
5755 {
58
- return drm_debugfs_create_files(pl111_debugfs_list,
59
- ARRAY_SIZE(pl111_debugfs_list),
60
- minor->debugfs_root, minor);
56
+ drm_debugfs_create_files(pl111_debugfs_list,
57
+ ARRAY_SIZE(pl111_debugfs_list),
58
+ minor->debugfs_root, minor);
6159 }