aboutsummaryrefslogtreecommitdiff
path: root/linux/drm_stub.h
diff options
context:
space:
mode:
authorJon Smirl <jonsmirl@yahoo.com>2004-09-15 16:06:50 +0000
committerJon Smirl <jonsmirl@yahoo.com>2004-09-15 16:06:50 +0000
commit941d2cf431d0534ec53f90e627bb0445b6f0260e (patch)
tree6db600972572e0e1eeb7243f9f80005be1dd8e93 /linux/drm_stub.h
parent64ef12c55cfca7885108950eb975c4d6625a0570 (diff)
Don't use module_param if it isn't defined in older kernels.
Diffstat (limited to 'linux/drm_stub.h')
-rw-r--r--linux/drm_stub.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/linux/drm_stub.h b/linux/drm_stub.h
index 8fd690d9..c70de9bb 100644
--- a/linux/drm_stub.h
+++ b/linux/drm_stub.h
@@ -39,11 +39,15 @@ static unsigned int debug = 0; /* 1 to enable debug output */
MODULE_AUTHOR( DRIVER_AUTHOR );
MODULE_DESCRIPTION( DRIVER_DESC );
MODULE_LICENSE("GPL and additional rights");
-module_param(cards_limit, int, 0444);
MODULE_PARM_DESC(cards_limit, "Maximum number of graphics cards");
-module_param(debug, int, 0644);
MODULE_PARM_DESC(debug, "Enable debug output");
+#ifdef module_param
+module_param(cards_limit, int, 0444);
+module_param(debug, int, 0644);
+#endif
+
+MODULE_AUTHOR( DRIVER_AUTHOR );
drm_global_t *DRM(global);
/**