aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/pas16.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@g5.osdl.org>2006-06-21 14:18:25 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-06-21 14:18:25 -0400
commit28e4b224955cbe30275b2a7842e729023a4f4b03 (patch)
treeab4d28fecc06070fc2a2742f4b4550b29de44912 /drivers/scsi/pas16.c
parent22ae813b85df7c0b0fc7c8d6f336d6a9f566ff97 (diff)
parent67d59dfdeb21df2c16dcd478b66177e91178ecd0 (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: (85 commits) [SCSI] 53c700: remove reliance on deprecated cmnd fields [SCSI] hptiop: don't use cmnd->bufflen [SCSI] hptiop: HighPoint RocketRAID 3xxx controller driver [SCSI] aacraid: small misc. cleanups [SCSI] aacraid: Update supported product information [SCSI] aacraid: Fix return code interpretation [SCSI] scsi_transport_sas: fix panic in sas_free_rphy [SCSI] remove RQ_SCSI_* flags [SCSI] remove scsi_request infrastructure [SCSI] mptfusion: change driver revision to 3.03.10 [SCSI] mptfc: abort of board reset leaves port dead requiring reboot [SCSI] mptfc: fix fibre channel infinite request/response loop [SCSI] mptfc: set fibre channel fw target missing timers to one second [SCSI] mptfusion: move fc event/reset handling to mptfc [SCSI] spi transport: don't allow dt to be set on SE or HVD buses [SCSI] aic7xxx: expose the bus setting to sysfs [SCSI] scsi: remove Documentation/scsi/cpqfc.txt [SCSI] drivers/scsi: Use ARRAY_SIZE macro [SCSI] Remove last page_address from dc395x.c [SCSI] hptiop: HighPoint RocketRAID 3xxx controller driver ... Fixed up conflicts in drivers/message/fusion/mptbase.c manually (due to the sparc interrupt cleanups)
Diffstat (limited to 'drivers/scsi/pas16.c')
-rw-r--r--drivers/scsi/pas16.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/scsi/pas16.c b/drivers/scsi/pas16.c
index f09e94af9ade..1bf96ed8f935 100644
--- a/drivers/scsi/pas16.c
+++ b/drivers/scsi/pas16.c
@@ -156,7 +156,7 @@ static int default_irqs[] __initdata =
156static struct override { 156static struct override {
157 unsigned short io_port; 157 unsigned short io_port;
158 int irq; 158 int irq;
159} overrides 159} overrides
160#ifdef PAS16_OVERRIDE 160#ifdef PAS16_OVERRIDE
161 [] __initdata = PAS16_OVERRIDE; 161 [] __initdata = PAS16_OVERRIDE;
162#else 162#else
@@ -164,19 +164,19 @@ static struct override {
164 {0,IRQ_AUTO}}; 164 {0,IRQ_AUTO}};
165#endif 165#endif
166 166
167#define NO_OVERRIDES (sizeof(overrides) / sizeof(struct override)) 167#define NO_OVERRIDES ARRAY_SIZE(overrides)
168 168
169static struct base { 169static struct base {
170 unsigned short io_port; 170 unsigned short io_port;
171 int noauto; 171 int noauto;
172} bases[] __initdata = 172} bases[] __initdata =
173 { {PAS16_DEFAULT_BASE_1, 0}, 173 { {PAS16_DEFAULT_BASE_1, 0},
174 {PAS16_DEFAULT_BASE_2, 0}, 174 {PAS16_DEFAULT_BASE_2, 0},
175 {PAS16_DEFAULT_BASE_3, 0}, 175 {PAS16_DEFAULT_BASE_3, 0},
176 {PAS16_DEFAULT_BASE_4, 0} 176 {PAS16_DEFAULT_BASE_4, 0}
177 }; 177 };
178 178
179#define NO_BASES (sizeof (bases) / sizeof (struct base)) 179#define NO_BASES ARRAY_SIZE(bases)
180 180
181static const unsigned short pas16_offset[ 8 ] = 181static const unsigned short pas16_offset[ 8 ] =
182 { 182 {