summaryrefslogtreecommitdiff
path: root/drivers/scsi/megaraid/mega_common.h
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2006-09-25 23:59:01 (GMT)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>2006-09-26 17:39:55 (GMT)
commitf5ebbeb57e4b57ac44f29ff9ec2ebde1401999d1 (patch)
tree689b256141424360c2fc39921570310e7f56d764 /drivers/scsi/megaraid/mega_common.h
parentd41ba22a6d330ab1e8d3adde7d2ce9349d4e4dc7 (diff)
downloadlinux-f5ebbeb57e4b57ac44f29ff9ec2ebde1401999d1.tar.xz
[SCSI] megaraid: Use the proper type to hold the irq number.
When testing on a Unisys machine it was discovered that the megaraid driver would not initialize as it was requesting irq 162 instead of irq 1442 it was assigned. The problem was the irq number had been truncated by being stored in an unsigned char. This patches fixes that problem and the driver now appears to work. The ioctl interface appears fundamentally broken as it exports the irq number to user space in an unsigned char. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/megaraid/mega_common.h')
-rw-r--r--drivers/scsi/megaraid/mega_common.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/megaraid/mega_common.h b/drivers/scsi/megaraid/mega_common.h
index 8cd0bd1..b50e27e 100644
--- a/drivers/scsi/megaraid/mega_common.h
+++ b/drivers/scsi/megaraid/mega_common.h
@@ -175,7 +175,7 @@ typedef struct {
uint8_t max_lun;
uint32_t unique_id;
- uint8_t irq;
+ int irq;
uint8_t ito;
caddr_t ibuf;
dma_addr_t ibuf_dma_h;