[PATCH] cciss: avoid defining useless MAJOR_NR macro
authorChristoph Hellwig <hch@lst.de>
Sun, 8 Jan 2006 09:05:17 +0000 (01:05 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 9 Jan 2006 04:14:09 +0000 (20:14 -0800)
This sneaked in with one of the updates.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/block/cciss.c
drivers/block/cciss.h

index 74818cc6509be0bd8d9b4b746b999352bd6897e7..88452c79fb647e0b66759ea5e44d8cf53bd1d3f2 100644 (file)
@@ -3118,7 +3118,7 @@ static int __devinit cciss_init_one(struct pci_dev *pdev,
         * 8 controller support.
         */
        if (i < MAX_CTLR_ORIG)
-               hba[i]->major = MAJOR_NR + i;
+               hba[i]->major = COMPAQ_CISS_MAJOR + i;
        rc = register_blkdev(hba[i]->major, hba[i]->devname);
        if(rc == -EBUSY || rc == -EINVAL) {
                printk(KERN_ERR
index ad45e581a91d2f0b5d10d78346265ddaf7a0e7de..b24fc0553ccf958c95538d22f79ad4f2682b068c 100644 (file)
@@ -13,8 +13,6 @@
 #define IO_OK          0
 #define IO_ERROR       1
 
-#define MAJOR_NR COMPAQ_CISS_MAJOR
-
 struct ctlr_info;
 typedef struct ctlr_info ctlr_info_t;