diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-05 19:32:01 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-05 19:32:01 -0400 |
commit | 44aefd2706bb6f5b65ba2c38cd89e7609e2b43d3 (patch) | |
tree | 93824f573767da634fbc82c388b6d33cc454212b /drivers/scsi/psi240i.c | |
parent | c1a26e7d40fb814716950122353a1a556844286b (diff) | |
parent | 7d12e780e003f93433d49ce78cfedf4b4c52adc5 (diff) |
Merge git://git.infradead.org/~dhowells/irq-2.6
* git://git.infradead.org/~dhowells/irq-2.6:
IRQ: Maintain regs pointer globally rather than passing to IRQ handlers
IRQ: Typedef the IRQ handler function type
IRQ: Typedef the IRQ flow handler function type
Diffstat (limited to 'drivers/scsi/psi240i.c')
-rw-r--r-- | drivers/scsi/psi240i.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/scsi/psi240i.c b/drivers/scsi/psi240i.c index 5c2cdf523c3b..a720c9265e66 100644 --- a/drivers/scsi/psi240i.c +++ b/drivers/scsi/psi240i.c | |||
@@ -247,12 +247,11 @@ static ULONG DecodeError (struct Scsi_Host *pshost, UCHAR status) | |||
247 | * | 247 | * |
248 | * Parameters: irq - Hardware IRQ number. | 248 | * Parameters: irq - Hardware IRQ number. |
249 | * dev_id - | 249 | * dev_id - |
250 | * regs - | ||
251 | * | 250 | * |
252 | * Returns: TRUE if drive is not ready in time. | 251 | * Returns: TRUE if drive is not ready in time. |
253 | * | 252 | * |
254 | ****************************************************************/ | 253 | ****************************************************************/ |
255 | static void Irq_Handler (int irq, void *dev_id, struct pt_regs *regs) | 254 | static void Irq_Handler (int irq, void *dev_id) |
256 | { | 255 | { |
257 | struct Scsi_Host *shost; // Pointer to host data block | 256 | struct Scsi_Host *shost; // Pointer to host data block |
258 | PADAPTER240I padapter; // Pointer to adapter control structure | 257 | PADAPTER240I padapter; // Pointer to adapter control structure |
@@ -368,13 +367,13 @@ irqerror:; | |||
368 | SCpnt->scsi_done (SCpnt); | 367 | SCpnt->scsi_done (SCpnt); |
369 | } | 368 | } |
370 | 369 | ||
371 | static irqreturn_t do_Irq_Handler (int irq, void *dev_id, struct pt_regs *regs) | 370 | static irqreturn_t do_Irq_Handler (int irq, void *dev_id) |
372 | { | 371 | { |
373 | unsigned long flags; | 372 | unsigned long flags; |
374 | struct Scsi_Host *dev = dev_id; | 373 | struct Scsi_Host *dev = dev_id; |
375 | 374 | ||
376 | spin_lock_irqsave(dev->host_lock, flags); | 375 | spin_lock_irqsave(dev->host_lock, flags); |
377 | Irq_Handler(irq, dev_id, regs); | 376 | Irq_Handler(irq, dev_id); |
378 | spin_unlock_irqrestore(dev->host_lock, flags); | 377 | spin_unlock_irqrestore(dev->host_lock, flags); |
379 | return IRQ_HANDLED; | 378 | return IRQ_HANDLED; |
380 | } | 379 | } |