diff options
| author | Christoph Hellwig <hch@lst.de> | 2002-12-04 20:22:57 -0800 |
|---|---|---|
| committer | Christoph Hellwig <hch@lst.de> | 2002-12-04 20:22:57 -0800 |
| commit | fd5a2280739852fc900bb79798b5287ce2521188 (patch) | |
| tree | 01e50c6d1206df6ef6fab12f7789f6d91e629700 /drivers/block/loop.c | |
| parent | ff7b031902e38acaf56f8ae6119c09db8ba1761d (diff) | |
[PATCH] get rid of MAJOR_NR
In <= 2.4 some of the mess in blk.h needed it defined, but that's
long gone now.
Diffstat (limited to 'drivers/block/loop.c')
| -rw-r--r-- | drivers/block/loop.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/block/loop.c b/drivers/block/loop.c index 6a0df43edf12..20e8fbdfcecc 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c @@ -79,8 +79,6 @@ #include <asm/uaccess.h> -#define MAJOR_NR LOOP_MAJOR - static int max_loop = 8; static struct loop_device *loop_dev; static struct gendisk **disks; @@ -1015,9 +1013,9 @@ int __init loop_init(void) max_loop = 8; } - if (register_blkdev(MAJOR_NR, "loop", &lo_fops)) { + if (register_blkdev(LOOP_MAJOR, "loop", &lo_fops)) { printk(KERN_WARNING "Unable to get major number %d for loop" - " device\n", MAJOR_NR); + " device\n", LOOP_MAJOR); return -EIO; } @@ -1082,7 +1080,7 @@ void loop_exit(void) devfs_remove("loop/%d", i); } devfs_remove("loop"); - if (unregister_blkdev(MAJOR_NR, "loop")) + if (unregister_blkdev(LOOP_MAJOR, "loop")) printk(KERN_WARNING "loop: cannot unregister blkdev\n"); kfree(disks); |
