From 33b903e82873ba9233bd89c44d016b87347ed158 Mon Sep 17 00:00:00 2001 From: Marcin Slusarz Date: Fri, 8 Feb 2013 21:42:13 +0100 Subject: drm/nouveau: restore debugfs/vbios.rom support Signed-off-by: Marcin Slusarz --- drivers/gpu/drm/nouveau/nouveau_debugfs.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 drivers/gpu/drm/nouveau/nouveau_debugfs.h (limited to 'drivers/gpu/drm/nouveau/nouveau_debugfs.h') diff --git a/drivers/gpu/drm/nouveau/nouveau_debugfs.h b/drivers/gpu/drm/nouveau/nouveau_debugfs.h new file mode 100644 index 00000000000..a62af6fb5f9 --- /dev/null +++ b/drivers/gpu/drm/nouveau/nouveau_debugfs.h @@ -0,0 +1,22 @@ +#ifndef __NOUVEAU_DEBUGFS_H__ +#define __NOUVEAU_DEBUGFS_H__ + +#include + +#if defined(CONFIG_DEBUG_FS) +extern int nouveau_debugfs_init(struct drm_minor *); +extern void nouveau_debugfs_takedown(struct drm_minor *); +#else +static inline int +nouveau_debugfs_init(struct drm_minor *minor) +{ + return 0; +} + +static inline void nouveau_debugfs_takedown(struct drm_minor *minor) +{ +} + +#endif + +#endif -- cgit v1.2.3-70-g09d2