diff options
author | Jeff Garzik <jeff@garzik.org> | 2006-10-11 03:56:12 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-10-11 03:56:12 -0400 |
commit | 24fcbacedb0d83cabc6761acbecfbf751265ce52 (patch) | |
tree | 7147b206304b028c3cfd5de6317e5c8510098ca9 /drivers/scsi/aha152x.c | |
parent | 2f614fe04f4463ff22234133319067d7361f54e5 (diff) | |
parent | 53a5fbdc2dff55161a206ed1a1385a8fa8055c34 (diff) |
Merge branch 'master' into upstream-fixes
Diffstat (limited to 'drivers/scsi/aha152x.c')
-rw-r--r-- | drivers/scsi/aha152x.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/drivers/scsi/aha152x.c b/drivers/scsi/aha152x.c index fb6a476eb873..a0d1cee0be77 100644 --- a/drivers/scsi/aha152x.c +++ b/drivers/scsi/aha152x.c | |||
@@ -673,7 +673,7 @@ static struct { | |||
673 | }; | 673 | }; |
674 | 674 | ||
675 | /* setup & interrupt */ | 675 | /* setup & interrupt */ |
676 | static irqreturn_t intr(int irq, void *dev_id, struct pt_regs *); | 676 | static irqreturn_t intr(int irq, void *dev_id); |
677 | static void reset_ports(struct Scsi_Host *shpnt); | 677 | static void reset_ports(struct Scsi_Host *shpnt); |
678 | static void aha152x_error(struct Scsi_Host *shpnt, char *msg); | 678 | static void aha152x_error(struct Scsi_Host *shpnt, char *msg); |
679 | static void done(struct Scsi_Host *shpnt, int error); | 679 | static void done(struct Scsi_Host *shpnt, int error); |
@@ -757,14 +757,9 @@ static inline Scsi_Cmnd *remove_SC(Scsi_Cmnd **SC, Scsi_Cmnd *SCp) | |||
757 | return ptr; | 757 | return ptr; |
758 | } | 758 | } |
759 | 759 | ||
760 | static irqreturn_t swintr(int irqno, void *dev_id, struct pt_regs *regs) | 760 | static irqreturn_t swintr(int irqno, void *dev_id) |
761 | { | 761 | { |
762 | struct Scsi_Host *shpnt = (struct Scsi_Host *)dev_id; | 762 | struct Scsi_Host *shpnt = dev_id; |
763 | |||
764 | if (!shpnt) { | ||
765 | printk(KERN_ERR "aha152x: catched software interrupt %d for unknown controller.\n", irqno); | ||
766 | return IRQ_NONE; | ||
767 | } | ||
768 | 763 | ||
769 | HOSTDATA(shpnt)->swint++; | 764 | HOSTDATA(shpnt)->swint++; |
770 | 765 | ||
@@ -1463,7 +1458,7 @@ static void run(void) | |||
1463 | * Interrupt handler | 1458 | * Interrupt handler |
1464 | * | 1459 | * |
1465 | */ | 1460 | */ |
1466 | static irqreturn_t intr(int irqno, void *dev_id, struct pt_regs *regs) | 1461 | static irqreturn_t intr(int irqno, void *dev_id) |
1467 | { | 1462 | { |
1468 | struct Scsi_Host *shpnt = (struct Scsi_Host *)dev_id; | 1463 | struct Scsi_Host *shpnt = (struct Scsi_Host *)dev_id; |
1469 | unsigned long flags; | 1464 | unsigned long flags; |