Don't use module_param if it isn't defined in older kernels.

main
Jon Smirl 2004-09-15 16:06:50 +00:00
parent 64ef12c55c
commit 941d2cf431
2 changed files with 12 additions and 4 deletions

View File

@ -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);
/**

View File

@ -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);
/**