Commit 06792c13 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] compile fixes

cpqarray uses disk_alloc instead of alloc_disk.  Same typo is in cciss,
rd.c sets ->first_minor to 0 for all units and HD_IRQ definition is
needed if CONFIG_BLK_DEV_HD is defined.
parent f66c1132
......@@ -2274,7 +2274,7 @@ static int alloc_cciss_hba(void)
struct gendisk *disk[NWD];
int i, n;
for (n = 0; n < NWD; n++) {
disk[n] = disk_alloc();
disk[n] = alloc_disk();
if (!disk[n])
goto out;
}
......
......@@ -355,7 +355,7 @@ static int __init cpqarray_init(void)
}
num_cntlrs_reg++;
for (j=0; j<NWD; j++) {
ida_gendisk[i][j] = disk_alloc();
ida_gendisk[i][j] = alloc_disk();
if (!ida_gendisk[i][j])
goto Enomem2;
}
......
......@@ -459,7 +459,7 @@ static int __init rd_init (void)
/* rd_size is given in kB */
rd_length[i] = rd_size << 10;
disk->major = MAJOR_NR;
disk->first_minor = 0;
disk->first_minor = i;
disk->minor_shift = 0;
disk->fops = &rd_bd_op;
sprintf(disk->disk_name, "rd%d", i);
......
......@@ -50,8 +50,6 @@
#define DEVICE_NR(device) (minor(device)>>6)
#include <linux/blk.h>
#define HD_IRQ 14 /* the standard disk interrupt */
#ifdef __arm__
#undef HD_IRQ
#endif
......
......@@ -8,6 +8,8 @@
/* ide.c has its own port definitions in "ide.h" */
#define HD_IRQ 14
/* Hd controller regs. Ref: IBM AT Bios-listing */
#define HD_DATA 0x1f0 /* _CTL when writing */
#define HD_ERROR 0x1f1 /* see err-bits */
......
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