diff options
Diffstat (limited to 'drivers/scsi/dtc.c')
-rw-r--r-- | drivers/scsi/dtc.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/drivers/scsi/dtc.c b/drivers/scsi/dtc.c index 310d2f488668..c5108c8c887b 100644 --- a/drivers/scsi/dtc.c +++ b/drivers/scsi/dtc.c | |||
@@ -145,35 +145,35 @@ static struct override { | |||
145 | 0, IRQ_AUTO}}; | 145 | 0, IRQ_AUTO}}; |
146 | #endif | 146 | #endif |
147 | 147 | ||
148 | #define NO_OVERRIDES (sizeof(overrides) / sizeof(struct override)) | 148 | #define NO_OVERRIDES ARRAY_SIZE(overrides) |
149 | 149 | ||
150 | static struct base { | 150 | static struct base { |
151 | unsigned long address; | 151 | unsigned long address; |
152 | int noauto; | 152 | int noauto; |
153 | } bases[] __initdata = { | 153 | } bases[] __initdata = { |
154 | { 0xcc000, 0 }, | 154 | { 0xcc000, 0 }, |
155 | { 0xc8000, 0 }, | 155 | { 0xc8000, 0 }, |
156 | { 0xdc000, 0 }, | 156 | { 0xdc000, 0 }, |
157 | { 0xd8000, 0 } | 157 | { 0xd8000, 0 } |
158 | }; | 158 | }; |
159 | 159 | ||
160 | #define NO_BASES (sizeof (bases) / sizeof (struct base)) | 160 | #define NO_BASES ARRAY_SIZE(bases) |
161 | 161 | ||
162 | static const struct signature { | 162 | static const struct signature { |
163 | const char *string; | 163 | const char *string; |
164 | int offset; | 164 | int offset; |
165 | } signatures[] = { | 165 | } signatures[] = { |
166 | {"DATA TECHNOLOGY CORPORATION BIOS", 0x25}, | 166 | {"DATA TECHNOLOGY CORPORATION BIOS", 0x25}, |
167 | }; | 167 | }; |
168 | 168 | ||
169 | #define NO_SIGNATURES (sizeof (signatures) / sizeof (struct signature)) | 169 | #define NO_SIGNATURES ARRAY_SIZE(signatures) |
170 | 170 | ||
171 | #ifndef MODULE | 171 | #ifndef MODULE |
172 | /* | 172 | /* |
173 | * Function : dtc_setup(char *str, int *ints) | 173 | * Function : dtc_setup(char *str, int *ints) |
174 | * | 174 | * |
175 | * Purpose : LILO command line initialization of the overrides array, | 175 | * Purpose : LILO command line initialization of the overrides array, |
176 | * | 176 | * |
177 | * Inputs : str - unused, ints - array of integer parameters with ints[0] | 177 | * Inputs : str - unused, ints - array of integer parameters with ints[0] |
178 | * equal to the number of ints. | 178 | * equal to the number of ints. |
179 | * | 179 | * |