diff --git a/drivers/md/md.c b/drivers/md/md.c index f30b4618c02c..3efc0bceada2 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -46,8 +46,6 @@ #include #include -#define MAJOR_NR MD_MAJOR - /* 63 partitions with the alternate major number (mdp) */ #define MdpMinorShift 6 @@ -6503,13 +6501,13 @@ static void md_geninit(void) static int __init md_init(void) { - if (register_blkdev(MAJOR_NR, "md")) + if (register_blkdev(MD_MAJOR, "md")) return -1; if ((mdp_major=register_blkdev(0, "mdp"))<=0) { - unregister_blkdev(MAJOR_NR, "md"); + unregister_blkdev(MD_MAJOR, "md"); return -1; } - blk_register_region(MKDEV(MAJOR_NR, 0), 1UL<