diff options
Diffstat (limited to 'drivers/scsi/pas16.c')
-rw-r--r-- | drivers/scsi/pas16.c | 8 |
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 = | |||
156 | static struct override { | 156 | static 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 | ||
169 | static struct base { | 169 | static 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 | ||
181 | static const unsigned short pas16_offset[ 8 ] = | 181 | static const unsigned short pas16_offset[ 8 ] = |
182 | { | 182 | { |