diff options
Diffstat (limited to 'drivers/video/neofb.c')
-rw-r--r-- | drivers/video/neofb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/video/neofb.c b/drivers/video/neofb.c index b961d5601bd9..24b12f71d5a8 100644 --- a/drivers/video/neofb.c +++ b/drivers/video/neofb.c | |||
@@ -165,20 +165,20 @@ static int neoFindMode(int xres, int yres, int depth) | |||
165 | 165 | ||
166 | switch (depth) { | 166 | switch (depth) { |
167 | case 8: | 167 | case 8: |
168 | size = sizeof(bios8) / sizeof(biosMode); | 168 | size = ARRAY_SIZE(bios8); |
169 | mode = bios8; | 169 | mode = bios8; |
170 | break; | 170 | break; |
171 | case 16: | 171 | case 16: |
172 | size = sizeof(bios16) / sizeof(biosMode); | 172 | size = ARRAY_SIZE(bios16); |
173 | mode = bios16; | 173 | mode = bios16; |
174 | break; | 174 | break; |
175 | case 24: | 175 | case 24: |
176 | size = sizeof(bios24) / sizeof(biosMode); | 176 | size = ARRAY_SIZE(bios24); |
177 | mode = bios24; | 177 | mode = bios24; |
178 | break; | 178 | break; |
179 | #ifdef NO_32BIT_SUPPORT_YET | 179 | #ifdef NO_32BIT_SUPPORT_YET |
180 | case 32: | 180 | case 32: |
181 | size = sizeof(bios32) / sizeof(biosMode); | 181 | size = ARRAY_SIZE(bios32); |
182 | mode = bios32; | 182 | mode = bios32; |
183 | break; | 183 | break; |
184 | #endif | 184 | #endif |