forked from Minki/linux
56c101af40
We will need our own debugfs_init and cleanup functions, because nouveau_drm isn't ready while the DRM ones are called by DRM. Signed-off-by: Karol Herbst <nouveau@karolherbst.de> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
24 lines
420 B
C
24 lines
420 B
C
#ifndef __NOUVEAU_DEBUGFS_H__
|
|
#define __NOUVEAU_DEBUGFS_H__
|
|
|
|
#include <drm/drmP.h>
|
|
|
|
#if defined(CONFIG_DEBUG_FS)
|
|
extern int nouveau_drm_debugfs_init(struct drm_minor *);
|
|
extern void nouveau_drm_debugfs_cleanup(struct drm_minor *);
|
|
#else
|
|
static inline int
|
|
nouveau_drm_debugfs_init(struct drm_minor *minor)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline void
|
|
nouveau_drm_debugfs_cleanup(struct drm_minor *minor)
|
|
{
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|