forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/gpu/drm/nouveau/nouveau_debugfs.h
....@@ -1,8 +1,8 @@
1
-/* SPDX-License-Identifier: GPL-2.0 */
1
+/* SPDX-License-Identifier: MIT */
22 #ifndef __NOUVEAU_DEBUGFS_H__
33 #define __NOUVEAU_DEBUGFS_H__
44
5
-#include <drm/drmP.h>
5
+#include <drm/drm_debugfs.h>
66
77 #if defined(CONFIG_DEBUG_FS)
88
....@@ -18,15 +18,13 @@
1818 return nouveau_drm(dev)->debugfs;
1919 }
2020
21
-extern int nouveau_drm_debugfs_init(struct drm_minor *);
21
+extern void nouveau_drm_debugfs_init(struct drm_minor *);
2222 extern int nouveau_debugfs_init(struct nouveau_drm *);
2323 extern void nouveau_debugfs_fini(struct nouveau_drm *);
2424 #else
25
-static inline int
25
+static inline void
2626 nouveau_drm_debugfs_init(struct drm_minor *minor)
27
-{
28
- return 0;
29
-}
27
+{}
3028
3129 static inline int
3230 nouveau_debugfs_init(struct nouveau_drm *drm)