Commit 66d36604 authored by Aristeu Sergio Rozanski Filho's avatar Aristeu Sergio Rozanski Filho Committed by James Bottomley

[PATCH] qlogicfas: kill QL_USE_IRQ

parent c7fb82ce
...@@ -48,11 +48,6 @@ ...@@ -48,11 +48,6 @@
#define QL_INT_ACTIVE_HIGH 2 #define QL_INT_ACTIVE_HIGH 2
/* Set the following to 1 to enable the use of interrupts. Note that 0 tends
to be more stable, but slower (or ties up the system more) */
#define QL_USE_IRQ 1
/* Set the following to max out the speed of the PIO PseudoDMA transfers, /* Set the following to max out the speed of the PIO PseudoDMA transfers,
again, 0 tends to be slower, but more stable. */ again, 0 tends to be slower, but more stable. */
...@@ -502,8 +497,6 @@ static unsigned int ql_pcmd(Scsi_Cmnd * cmd) ...@@ -502,8 +497,6 @@ static unsigned int ql_pcmd(Scsi_Cmnd * cmd)
return (result << 16) | (message << 8) | (status & STATUS_MASK); return (result << 16) | (message << 8) | (status & STATUS_MASK);
} }
#if QL_USE_IRQ
/* /*
* Interrupt handler * Interrupt handler
*/ */
...@@ -543,10 +536,6 @@ static irqreturn_t do_ql_ihandl(int irq, void *dev_id, struct pt_regs *regs) ...@@ -543,10 +536,6 @@ static irqreturn_t do_ql_ihandl(int irq, void *dev_id, struct pt_regs *regs)
return IRQ_HANDLED; return IRQ_HANDLED;
} }
#endif
#if QL_USE_IRQ
/* /*
* Queued command * Queued command
*/ */
...@@ -568,12 +557,6 @@ int qlogicfas_queuecommand(Scsi_Cmnd * cmd, void (*done) (Scsi_Cmnd *)) ...@@ -568,12 +557,6 @@ int qlogicfas_queuecommand(Scsi_Cmnd * cmd, void (*done) (Scsi_Cmnd *))
ql_icmd(cmd); ql_icmd(cmd);
return 0; return 0;
} }
#else
int qlogicfas_queuecommand(Scsi_Cmnd * cmd, void (*done) (Scsi_Cmnd *))
{
return 1;
}
#endif
#ifdef PCMCIA #ifdef PCMCIA
...@@ -643,7 +626,6 @@ struct Scsi_Host *__qlogicfas_detect(Scsi_Host_Template *host) ...@@ -643,7 +626,6 @@ struct Scsi_Host *__qlogicfas_detect(Scsi_Host_Template *host)
REG0; REG0;
#endif #endif
#if QL_USE_IRQ
/* /*
* IRQ probe - toggle pin and check request pending * IRQ probe - toggle pin and check request pending
*/ */
...@@ -672,7 +654,7 @@ struct Scsi_Host *__qlogicfas_detect(Scsi_Host_Template *host) ...@@ -672,7 +654,7 @@ struct Scsi_Host *__qlogicfas_detect(Scsi_Host_Template *host)
if (qlirq >= 0 && !request_irq(qlirq, do_ql_ihandl, 0, qlogicfas_name, NULL)) if (qlirq >= 0 && !request_irq(qlirq, do_ql_ihandl, 0, qlogicfas_name, NULL))
host->can_queue = 1; host->can_queue = 1;
#endif
hreg = scsi_register(host, 0); /* no host data */ hreg = scsi_register(host, 0); /* no host data */
if (!hreg) if (!hreg)
goto err_release_mem; goto err_release_mem;
......
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