Commit cdabd5b1 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] dm: don't use MODULE_PARM

From: Joe Thornber <thornber@sistina.com>

MODULE_PARM is deprecated in 2.6. Use the new module_param() macro.
[Kevin Corry]
parent ddff49c1
......@@ -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>");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment