.. | .. |
---|
1 | | -/* SPDX-License-Identifier: GPL-2.0 */ |
---|
| 1 | +/* SPDX-License-Identifier: MIT */ |
---|
2 | 2 | #ifndef __NOUVEAU_DEBUGFS_H__ |
---|
3 | 3 | #define __NOUVEAU_DEBUGFS_H__ |
---|
4 | 4 | |
---|
5 | | -#include <drm/drmP.h> |
---|
| 5 | +#include <drm/drm_debugfs.h> |
---|
6 | 6 | |
---|
7 | 7 | #if defined(CONFIG_DEBUG_FS) |
---|
8 | 8 | |
---|
.. | .. |
---|
18 | 18 | return nouveau_drm(dev)->debugfs; |
---|
19 | 19 | } |
---|
20 | 20 | |
---|
21 | | -extern int nouveau_drm_debugfs_init(struct drm_minor *); |
---|
| 21 | +extern void nouveau_drm_debugfs_init(struct drm_minor *); |
---|
22 | 22 | extern int nouveau_debugfs_init(struct nouveau_drm *); |
---|
23 | 23 | extern void nouveau_debugfs_fini(struct nouveau_drm *); |
---|
24 | 24 | #else |
---|
25 | | -static inline int |
---|
| 25 | +static inline void |
---|
26 | 26 | nouveau_drm_debugfs_init(struct drm_minor *minor) |
---|
27 | | -{ |
---|
28 | | - return 0; |
---|
29 | | -} |
---|
| 27 | +{} |
---|
30 | 28 | |
---|
31 | 29 | static inline int |
---|
32 | 30 | nouveau_debugfs_init(struct nouveau_drm *drm) |
---|