diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-15 19:51:54 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-15 19:51:54 -0400 |
commit | bc06cffdec85d487c77109dffcd2f285bdc502d3 (patch) | |
tree | adc6e6398243da87e66c56102840597a329183a0 /drivers/scsi/NCR5380.c | |
parent | d3502d7f25b22cfc9762bf1781faa9db1bb3be2e (diff) | |
parent | 9413d7b8aa777dd1fc7db9563ce5e80d769fe7b5 (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/jejb/scsi-misc-2.6: (166 commits)
[SCSI] ibmvscsi: convert to use the data buffer accessors
[SCSI] dc395x: convert to use the data buffer accessors
[SCSI] ncr53c8xx: convert to use the data buffer accessors
[SCSI] sym53c8xx: convert to use the data buffer accessors
[SCSI] ppa: coding police and printk levels
[SCSI] aic7xxx_old: remove redundant GFP_ATOMIC from kmalloc
[SCSI] i2o: remove redundant GFP_ATOMIC from kmalloc from device.c
[SCSI] remove the dead CYBERSTORMIII_SCSI option
[SCSI] don't build scsi_dma_{map,unmap} for !HAS_DMA
[SCSI] Clean up scsi_add_lun a bit
[SCSI] 53c700: Remove printk, which triggers because of low scsi clock on SNI RMs
[SCSI] sni_53c710: Cleanup
[SCSI] qla4xxx: Fix underrun/overrun conditions
[SCSI] megaraid_mbox: use mutex instead of semaphore
[SCSI] aacraid: add 51245, 51645 and 52245 adapters to documentation.
[SCSI] qla2xxx: update version to 8.02.00-k1.
[SCSI] qla2xxx: add support for NPIV
[SCSI] stex: use resid for xfer len information
[SCSI] Add Brownie 1200U3P to blacklist
[SCSI] scsi.c: convert to use the data buffer accessors
...
Diffstat (limited to 'drivers/scsi/NCR5380.c')
-rw-r--r-- | drivers/scsi/NCR5380.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/drivers/scsi/NCR5380.c b/drivers/scsi/NCR5380.c index 88ea5a1fb60..f8e449a98d2 100644 --- a/drivers/scsi/NCR5380.c +++ b/drivers/scsi/NCR5380.c | |||
@@ -347,7 +347,7 @@ static int NCR5380_poll_politely(struct Scsi_Host *instance, int reg, int bit, i | |||
347 | if((r & bit) == val) | 347 | if((r & bit) == val) |
348 | return 0; | 348 | return 0; |
349 | if(!in_interrupt()) | 349 | if(!in_interrupt()) |
350 | yield(); | 350 | cond_resched(); |
351 | else | 351 | else |
352 | cpu_relax(); | 352 | cpu_relax(); |
353 | } | 353 | } |
@@ -357,7 +357,7 @@ static int NCR5380_poll_politely(struct Scsi_Host *instance, int reg, int bit, i | |||
357 | static struct { | 357 | static struct { |
358 | unsigned char value; | 358 | unsigned char value; |
359 | const char *name; | 359 | const char *name; |
360 | } phases[] = { | 360 | } phases[] __maybe_unused = { |
361 | {PHASE_DATAOUT, "DATAOUT"}, | 361 | {PHASE_DATAOUT, "DATAOUT"}, |
362 | {PHASE_DATAIN, "DATAIN"}, | 362 | {PHASE_DATAIN, "DATAIN"}, |
363 | {PHASE_CMDOUT, "CMDOUT"}, | 363 | {PHASE_CMDOUT, "CMDOUT"}, |
@@ -575,7 +575,8 @@ static irqreturn_t __init probe_intr(int irq, void *dev_id) | |||
575 | * Locks: none, irqs must be enabled on entry | 575 | * Locks: none, irqs must be enabled on entry |
576 | */ | 576 | */ |
577 | 577 | ||
578 | static int __init NCR5380_probe_irq(struct Scsi_Host *instance, int possible) | 578 | static int __init __maybe_unused NCR5380_probe_irq(struct Scsi_Host *instance, |
579 | int possible) | ||
579 | { | 580 | { |
580 | NCR5380_local_declare(); | 581 | NCR5380_local_declare(); |
581 | struct NCR5380_hostdata *hostdata = (struct NCR5380_hostdata *) instance->hostdata; | 582 | struct NCR5380_hostdata *hostdata = (struct NCR5380_hostdata *) instance->hostdata; |
@@ -629,7 +630,8 @@ static int __init NCR5380_probe_irq(struct Scsi_Host *instance, int possible) | |||
629 | * Locks: none | 630 | * Locks: none |
630 | */ | 631 | */ |
631 | 632 | ||
632 | static void __init NCR5380_print_options(struct Scsi_Host *instance) | 633 | static void __init __maybe_unused |
634 | NCR5380_print_options(struct Scsi_Host *instance) | ||
633 | { | 635 | { |
634 | printk(" generic options" | 636 | printk(" generic options" |
635 | #ifdef AUTOPROBE_IRQ | 637 | #ifdef AUTOPROBE_IRQ |
@@ -703,8 +705,8 @@ char *lprint_command(unsigned char *cmd, char *pos, char *buffer, int len); | |||
703 | static | 705 | static |
704 | char *lprint_opcode(int opcode, char *pos, char *buffer, int length); | 706 | char *lprint_opcode(int opcode, char *pos, char *buffer, int length); |
705 | 707 | ||
706 | static | 708 | static int __maybe_unused NCR5380_proc_info(struct Scsi_Host *instance, |
707 | int NCR5380_proc_info(struct Scsi_Host *instance, char *buffer, char **start, off_t offset, int length, int inout) | 709 | char *buffer, char **start, off_t offset, int length, int inout) |
708 | { | 710 | { |
709 | char *pos = buffer; | 711 | char *pos = buffer; |
710 | struct NCR5380_hostdata *hostdata; | 712 | struct NCR5380_hostdata *hostdata; |