summaryrefslogtreecommitdiff
path: root/linux-core/drm_stub.c
diff options
context:
space:
mode:
authorJon Smirl <jonsmirl@yahoo.com>2004-10-15 02:59:35 +0000
committerJon Smirl <jonsmirl@yahoo.com>2004-10-15 02:59:35 +0000
commitfa50e2b5132b84353ae964a39c3b10ea270d15e8 (patch)
tree8b987d4039b84b424e5d55c6b32b74d99cc00695 /linux-core/drm_stub.c
parent5e8838fd115879174567c4c2db8ad25331619994 (diff)
downloadlibdrm-fa50e2b5132b84353ae964a39c3b10ea270d15e8.tar.gz
libdrm-fa50e2b5132b84353ae964a39c3b10ea270d15e8.tar.bz2
libdrm-fa50e2b5132b84353ae964a39c3b10ea270d15e8.zip
Switch linux-core over to 2.6 parameter model to enable debug use
drm_debug=1
Diffstat (limited to 'linux-core/drm_stub.c')
-rw-r--r--linux-core/drm_stub.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/linux-core/drm_stub.c b/linux-core/drm_stub.c
index 95ecd2d4..b52e4b51 100644
--- a/linux-core/drm_stub.c
+++ b/linux-core/drm_stub.c
@@ -37,16 +37,17 @@
#include "drm_core.h"
unsigned int cards_limit = 16; /* Enough for one machine */
-unsigned int debug = 0; /* 1 to enable debug output */
+unsigned int drm_debug = 0; /* 1 to enable debug output */
+EXPORT_SYMBOL(drm_debug);
MODULE_AUTHOR(DRIVER_AUTHOR);
MODULE_DESCRIPTION(DRIVER_DESC);
MODULE_LICENSE("GPL and additional rights");
MODULE_PARM_DESC(cards_limit, "Maximum number of graphics cards");
-MODULE_PARM_DESC(debug, "Enable debug output");
+MODULE_PARM_DESC(drm_debug, "Enable debug output");
-module_param(cards_limit, int, 0444);
-module_param(debug, int, 0666);
+module_param(cards_limit, int, S_IRUGO);
+module_param(drm_debug, int, S_IRUGO|S_IWUGO);
drm_head_t **drm_heads;
struct drm_sysfs_class *drm_class;