From: Joe Thornber <thornber@sistina.com>
MODULE_PARM is deprecated in 2.6. Use the new module_param() macro.
[Kevin Corry]
#include <linux/init.h>
#include <linux/module.h>
+#include <linux/moduleparam.h>
#include <linux/blkpg.h>
#include <linux/bio.h>
#include <linux/mempool.h>
module_init(dm_init);
module_exit(dm_exit);
-MODULE_PARM(major, "i");
+module_param(major, uint, 0);
MODULE_PARM_DESC(major, "The major number of the device mapper");
MODULE_DESCRIPTION(DM_NAME " driver");
MODULE_AUTHOR("Joe Thornber <thornber@sistina.com>");