]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] dm: don't use MODULE_PARM
authorAndrew Morton <akpm@osdl.org>
Thu, 7 Aug 2003 04:12:14 +0000 (21:12 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Thu, 7 Aug 2003 04:12:14 +0000 (21:12 -0700)
From: Joe Thornber <thornber@sistina.com>

MODULE_PARM is deprecated in 2.6. Use the new module_param() macro.
[Kevin Corry]

drivers/md/dm.c

index 679dcf17884734a7b3fcac3da4740c326175f97c..37a9501c5813919e13244463d5a83957e9bb4fd2 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <linux/init.h>
 #include <linux/module.h>
+#include <linux/moduleparam.h>
 #include <linux/blkpg.h>
 #include <linux/bio.h>
 #include <linux/mempool.h>
@@ -925,7 +926,7 @@ struct block_device_operations dm_blk_dops = {
 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>");