diff options
| -rw-r--r-- | arch/arm/mach-rpc/ecard.c | 6 | ||||
| -rw-r--r-- | drivers/scsi/arm/arxescsi.c | 2 | ||||
| -rw-r--r-- | drivers/scsi/arm/fas216.c | 4 | ||||
| -rw-r--r-- | drivers/scsi/arm/fas216.h | 4 |
4 files changed, 6 insertions, 10 deletions
diff --git a/arch/arm/mach-rpc/ecard.c b/arch/arm/mach-rpc/ecard.c index f7ee875b2f37..0c01567007c8 100644 --- a/arch/arm/mach-rpc/ecard.c +++ b/arch/arm/mach-rpc/ecard.c | |||
| @@ -560,7 +560,7 @@ ecard_irq_handler(unsigned int irq, struct irq_desc *desc) | |||
| 560 | for (ec = cards; ec; ec = ec->next) { | 560 | for (ec = cards; ec; ec = ec->next) { |
| 561 | int pending; | 561 | int pending; |
| 562 | 562 | ||
| 563 | if (!ec->claimed || ec->irq == NO_IRQ || ec->slot_no == 8) | 563 | if (!ec->claimed || !ec->irq || ec->slot_no == 8) |
| 564 | continue; | 564 | continue; |
| 565 | 565 | ||
| 566 | if (ec->ops && ec->ops->irqpending) | 566 | if (ec->ops && ec->ops->irqpending) |
| @@ -710,8 +710,8 @@ static struct expansion_card *__init ecard_alloc_card(int type, int slot) | |||
| 710 | 710 | ||
| 711 | ec->slot_no = slot; | 711 | ec->slot_no = slot; |
| 712 | ec->easi = type == ECARD_EASI; | 712 | ec->easi = type == ECARD_EASI; |
| 713 | ec->irq = NO_IRQ; | 713 | ec->irq = 0; |
| 714 | ec->fiq = NO_IRQ; | 714 | ec->fiq = 0; |
| 715 | ec->dma = NO_DMA; | 715 | ec->dma = NO_DMA; |
| 716 | ec->ops = &ecard_default_ops; | 716 | ec->ops = &ecard_default_ops; |
| 717 | 717 | ||
diff --git a/drivers/scsi/arm/arxescsi.c b/drivers/scsi/arm/arxescsi.c index a750aa72b8ef..2a28b4ad1975 100644 --- a/drivers/scsi/arm/arxescsi.c +++ b/drivers/scsi/arm/arxescsi.c | |||
| @@ -305,7 +305,7 @@ arxescsi_probe(struct expansion_card *ec, const struct ecard_id *id) | |||
| 305 | info->base = base; | 305 | info->base = base; |
| 306 | 306 | ||
| 307 | info->info.scsi.io_base = base + 0x2000; | 307 | info->info.scsi.io_base = base + 0x2000; |
| 308 | info->info.scsi.irq = NO_IRQ; | 308 | info->info.scsi.irq = 0; |
| 309 | info->info.scsi.dma = NO_DMA; | 309 | info->info.scsi.dma = NO_DMA; |
| 310 | info->info.scsi.io_shift = 5; | 310 | info->info.scsi.io_shift = 5; |
| 311 | info->info.ifcfg.clockrate = 24; /* MHz */ | 311 | info->info.ifcfg.clockrate = 24; /* MHz */ |
diff --git a/drivers/scsi/arm/fas216.c b/drivers/scsi/arm/fas216.c index e85c40b6e19b..6206a666a8ec 100644 --- a/drivers/scsi/arm/fas216.c +++ b/drivers/scsi/arm/fas216.c | |||
| @@ -2176,7 +2176,7 @@ static void fas216_done(FAS216_Info *info, unsigned int result) | |||
| 2176 | fn = (void (*)(FAS216_Info *, struct scsi_cmnd *, unsigned int))SCpnt->host_scribble; | 2176 | fn = (void (*)(FAS216_Info *, struct scsi_cmnd *, unsigned int))SCpnt->host_scribble; |
| 2177 | fn(info, SCpnt, result); | 2177 | fn(info, SCpnt, result); |
| 2178 | 2178 | ||
| 2179 | if (info->scsi.irq != NO_IRQ) { | 2179 | if (info->scsi.irq) { |
| 2180 | spin_lock_irqsave(&info->host_lock, flags); | 2180 | spin_lock_irqsave(&info->host_lock, flags); |
| 2181 | if (info->scsi.phase == PHASE_IDLE) | 2181 | if (info->scsi.phase == PHASE_IDLE) |
| 2182 | fas216_kick(info); | 2182 | fas216_kick(info); |
| @@ -2276,7 +2276,7 @@ static int fas216_noqueue_command_lck(struct scsi_cmnd *SCpnt, | |||
| 2276 | * We should only be using this if we don't have an interrupt. | 2276 | * We should only be using this if we don't have an interrupt. |
| 2277 | * Provide some "incentive" to use the queueing code. | 2277 | * Provide some "incentive" to use the queueing code. |
| 2278 | */ | 2278 | */ |
| 2279 | BUG_ON(info->scsi.irq != NO_IRQ); | 2279 | BUG_ON(info->scsi.irq); |
| 2280 | 2280 | ||
| 2281 | info->internal_done = 0; | 2281 | info->internal_done = 0; |
| 2282 | fas216_queue_command_lck(SCpnt, fas216_internal_done); | 2282 | fas216_queue_command_lck(SCpnt, fas216_internal_done); |
diff --git a/drivers/scsi/arm/fas216.h b/drivers/scsi/arm/fas216.h index 84b7127c0121..df2e1b3ddfe2 100644 --- a/drivers/scsi/arm/fas216.h +++ b/drivers/scsi/arm/fas216.h | |||
| @@ -12,10 +12,6 @@ | |||
| 12 | #ifndef FAS216_H | 12 | #ifndef FAS216_H |
| 13 | #define FAS216_H | 13 | #define FAS216_H |
| 14 | 14 | ||
| 15 | #ifndef NO_IRQ | ||
| 16 | #define NO_IRQ 255 | ||
| 17 | #endif | ||
| 18 | |||
| 19 | #include <scsi/scsi_eh.h> | 15 | #include <scsi/scsi_eh.h> |
| 20 | 16 | ||
| 21 | #include "queue.h" | 17 | #include "queue.h" |
