mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
Merge branch 'submit1' of viper:/spare/repo/irq-remove-2.6 into irqcleanups
This commit is contained in:
commit
5d347c8aba
74 changed files with 106 additions and 329 deletions
|
|
@ -168,7 +168,7 @@ enum Phase {
|
|||
};
|
||||
|
||||
/* Static function prototypes */
|
||||
static void NCR53c406a_intr(int, void *);
|
||||
static void NCR53c406a_intr(void *);
|
||||
static irqreturn_t do_NCR53c406a_intr(int, void *);
|
||||
static void chip_init(void);
|
||||
static void calc_port_addr(void);
|
||||
|
|
@ -685,7 +685,7 @@ static void wait_intr(void)
|
|||
return;
|
||||
}
|
||||
|
||||
NCR53c406a_intr(0, NULL, NULL);
|
||||
NCR53c406a_intr(NULL);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
@ -767,12 +767,12 @@ static irqreturn_t do_NCR53c406a_intr(int unused, void *dev_id)
|
|||
struct Scsi_Host *dev = dev_id;
|
||||
|
||||
spin_lock_irqsave(dev->host_lock, flags);
|
||||
NCR53c406a_intr(0, dev_id);
|
||||
NCR53c406a_intr(dev_id);
|
||||
spin_unlock_irqrestore(dev->host_lock, flags);
|
||||
return IRQ_HANDLED;
|
||||
}
|
||||
|
||||
static void NCR53c406a_intr(int unused, void *dev_id)
|
||||
static void NCR53c406a_intr(void *dev_id)
|
||||
{
|
||||
DEB(unsigned char fifo_size;
|
||||
)
|
||||
|
|
|
|||
|
|
@ -759,12 +759,7 @@ static inline Scsi_Cmnd *remove_SC(Scsi_Cmnd **SC, Scsi_Cmnd *SCp)
|
|||
|
||||
static irqreturn_t swintr(int irqno, void *dev_id)
|
||||
{
|
||||
struct Scsi_Host *shpnt = (struct Scsi_Host *)dev_id;
|
||||
|
||||
if (!shpnt) {
|
||||
printk(KERN_ERR "aha152x: catched software interrupt %d for unknown controller.\n", irqno);
|
||||
return IRQ_NONE;
|
||||
}
|
||||
struct Scsi_Host *shpnt = dev_id;
|
||||
|
||||
HOSTDATA(shpnt)->swint++;
|
||||
|
||||
|
|
|
|||
|
|
@ -6345,12 +6345,12 @@ aic7xxx_handle_command_completion_intr(struct aic7xxx_host *p)
|
|||
* SCSI controller interrupt handler.
|
||||
*-F*************************************************************************/
|
||||
static void
|
||||
aic7xxx_isr(int irq, void *dev_id)
|
||||
aic7xxx_isr(void *dev_id)
|
||||
{
|
||||
struct aic7xxx_host *p;
|
||||
unsigned char intstat;
|
||||
|
||||
p = (struct aic7xxx_host *)dev_id;
|
||||
p = dev_id;
|
||||
|
||||
/*
|
||||
* Just a few sanity checks. Make sure that we have an int pending.
|
||||
|
|
@ -6489,7 +6489,7 @@ do_aic7xxx_isr(int irq, void *dev_id)
|
|||
p->flags |= AHC_IN_ISR;
|
||||
do
|
||||
{
|
||||
aic7xxx_isr(irq, dev_id);
|
||||
aic7xxx_isr(dev_id);
|
||||
} while ( (aic_inb(p, INTSTAT) & INT_PEND) );
|
||||
aic7xxx_done_cmds_complete(p);
|
||||
aic7xxx_run_waiting_queues(p);
|
||||
|
|
@ -10377,7 +10377,7 @@ static int __aic7xxx_bus_device_reset(struct scsi_cmnd *cmd)
|
|||
|
||||
hscb = scb->hscb;
|
||||
|
||||
aic7xxx_isr(p->irq, (void *)p);
|
||||
aic7xxx_isr(p);
|
||||
aic7xxx_done_cmds_complete(p);
|
||||
/* If the command was already complete or just completed, then we didn't
|
||||
* do a reset, return FAILED */
|
||||
|
|
@ -10608,7 +10608,7 @@ static int __aic7xxx_abort(struct scsi_cmnd *cmd)
|
|||
else
|
||||
return FAILED;
|
||||
|
||||
aic7xxx_isr(p->irq, (void *)p);
|
||||
aic7xxx_isr(p);
|
||||
aic7xxx_done_cmds_complete(p);
|
||||
/* If the command was already complete or just completed, then we didn't
|
||||
* do a reset, return FAILED */
|
||||
|
|
@ -10863,7 +10863,7 @@ static int aic7xxx_reset(struct scsi_cmnd *cmd)
|
|||
|
||||
while((aic_inb(p, INTSTAT) & INT_PEND) && !(p->flags & AHC_IN_ISR))
|
||||
{
|
||||
aic7xxx_isr(p->irq, p);
|
||||
aic7xxx_isr(p);
|
||||
pause_sequencer(p);
|
||||
}
|
||||
aic7xxx_done_cmds_complete(p);
|
||||
|
|
|
|||
|
|
@ -1815,7 +1815,7 @@ static void dc395x_handle_interrupt(struct AdapterCtlBlk *acb,
|
|||
|
||||
static irqreturn_t dc395x_interrupt(int irq, void *dev_id)
|
||||
{
|
||||
struct AdapterCtlBlk *acb = (struct AdapterCtlBlk *)dev_id;
|
||||
struct AdapterCtlBlk *acb = dev_id;
|
||||
u16 scsi_status;
|
||||
u8 dma_status;
|
||||
irqreturn_t handled = IRQ_NONE;
|
||||
|
|
|
|||
|
|
@ -405,10 +405,10 @@ static unsigned int ql_pcmd(Scsi_Cmnd * cmd)
|
|||
* Interrupt handler
|
||||
*/
|
||||
|
||||
static void ql_ihandl(int irq, void *dev_id)
|
||||
static void ql_ihandl(void *dev_id)
|
||||
{
|
||||
Scsi_Cmnd *icmd;
|
||||
struct Scsi_Host *host = (struct Scsi_Host *)dev_id;
|
||||
struct Scsi_Host *host = dev_id;
|
||||
struct qlogicfas408_priv *priv = get_priv_by_host(host);
|
||||
int qbase = priv->qbase;
|
||||
REG0;
|
||||
|
|
@ -438,7 +438,7 @@ irqreturn_t qlogicfas408_ihandl(int irq, void *dev_id)
|
|||
struct Scsi_Host *host = dev_id;
|
||||
|
||||
spin_lock_irqsave(host->host_lock, flags);
|
||||
ql_ihandl(irq, dev_id);
|
||||
ql_ihandl(dev_id);
|
||||
spin_unlock_irqrestore(host->host_lock, flags);
|
||||
return IRQ_HANDLED;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -700,9 +700,9 @@ dc390_InvalidCmd(struct dc390_acb* pACB)
|
|||
|
||||
|
||||
static irqreturn_t __inline__
|
||||
DC390_Interrupt(int irq, void *dev_id)
|
||||
DC390_Interrupt(void *dev_id)
|
||||
{
|
||||
struct dc390_acb *pACB = (struct dc390_acb*)dev_id;
|
||||
struct dc390_acb *pACB = dev_id;
|
||||
struct dc390_dcb *pDCB;
|
||||
struct dc390_srb *pSRB;
|
||||
u8 sstatus=0;
|
||||
|
|
@ -811,12 +811,12 @@ DC390_Interrupt(int irq, void *dev_id)
|
|||
return IRQ_HANDLED;
|
||||
}
|
||||
|
||||
static irqreturn_t do_DC390_Interrupt( int irq, void *dev_id)
|
||||
static irqreturn_t do_DC390_Interrupt(int irq, void *dev_id)
|
||||
{
|
||||
irqreturn_t ret;
|
||||
DEBUG1(printk (KERN_INFO "DC390: Irq (%i) caught: ", irq));
|
||||
/* Locking is done in DC390_Interrupt */
|
||||
ret = DC390_Interrupt(irq, dev_id);
|
||||
ret = DC390_Interrupt(dev_id);
|
||||
DEBUG1(printk (".. IRQ returned\n"));
|
||||
return ret;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -287,7 +287,7 @@ static const unsigned short ultrastor_ports_14f[] = {
|
|||
};
|
||||
#endif
|
||||
|
||||
static void ultrastor_interrupt(int, void *);
|
||||
static void ultrastor_interrupt(void *);
|
||||
static irqreturn_t do_ultrastor_interrupt(int, void *);
|
||||
static inline void build_sg_list(struct mscp *, struct scsi_cmnd *SCpnt);
|
||||
|
||||
|
|
@ -893,7 +893,7 @@ static int ultrastor_abort(struct scsi_cmnd *SCpnt)
|
|||
|
||||
spin_lock_irqsave(host->host_lock, flags);
|
||||
/* FIXME: Ewww... need to think about passing host around properly */
|
||||
ultrastor_interrupt(0, NULL);
|
||||
ultrastor_interrupt(NULL);
|
||||
spin_unlock_irqrestore(host->host_lock, flags);
|
||||
return SUCCESS;
|
||||
}
|
||||
|
|
@ -1039,7 +1039,7 @@ int ultrastor_biosparam(struct scsi_device *sdev, struct block_device *bdev,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void ultrastor_interrupt(int irq, void *dev_id)
|
||||
static void ultrastor_interrupt(void *dev_id)
|
||||
{
|
||||
unsigned int status;
|
||||
#if ULTRASTOR_MAX_CMDS > 1
|
||||
|
|
@ -1177,7 +1177,7 @@ static irqreturn_t do_ultrastor_interrupt(int irq, void *dev_id)
|
|||
struct Scsi_Host *dev = dev_id;
|
||||
|
||||
spin_lock_irqsave(dev->host_lock, flags);
|
||||
ultrastor_interrupt(irq, dev_id);
|
||||
ultrastor_interrupt(dev_id);
|
||||
spin_unlock_irqrestore(dev->host_lock, flags);
|
||||
return IRQ_HANDLED;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue