[PATCH] atyfb c99 fix

- fix this:

drivers/video/aty/xlinit.c: In function `atyfb_xl_init':
drivers/video/aty/xlinit.c:256: warning: ISO C90 forbids mixed declarations and code

- repair some kooky coding style

- Use ARRAY_SIZE()

Cc: Tom 'spot' Callaway <tcallawa@redhat.com>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Andrew Morton and committed by Linus Torvalds 2601c2e2 a3b5f0d4

+5 -3
+5 -3
drivers/video/aty/xlinit.c
··· 253 aty_st_le32(0xFC, 0x00000000, par); 254 255 #if defined (CONFIG_FB_ATY_GENERIC_LCD) 256 - int i; 257 - for (i=0; i<sizeof(lcd_tbl)/sizeof(lcd_tbl_t); i++) { 258 - aty_st_lcd(lcd_tbl[i].lcd_reg, lcd_tbl[i].val, par); 259 } 260 #endif 261
··· 253 aty_st_le32(0xFC, 0x00000000, par); 254 255 #if defined (CONFIG_FB_ATY_GENERIC_LCD) 256 + { 257 + int i; 258 + 259 + for (i = 0; i < ARRAY_SIZE(lcd_tbl); i++) 260 + aty_st_lcd(lcd_tbl[i].lcd_reg, lcd_tbl[i].val, par); 261 } 262 #endif 263