From: Andrew Morton Date: Fri, 23 Sep 2005 20:24:06 +0000 (-0700) Subject: [PATCH] atyfb c99 fix X-Git-Tag: v2.6.14-rc3~51^2~12 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=2601c2e278863cd48c01bce1377b4c9747893025;p=linux-2.6-omap-h63xx.git [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 Cc: "Antonino A. Daplas" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/video/aty/xlinit.c b/drivers/video/aty/xlinit.c index 0bea0d8d782..a085cbf74ec 100644 --- a/drivers/video/aty/xlinit.c +++ b/drivers/video/aty/xlinit.c @@ -253,9 +253,11 @@ int atyfb_xl_init(struct fb_info *info) aty_st_le32(0xFC, 0x00000000, par); #if defined (CONFIG_FB_ATY_GENERIC_LCD) - int i; - for (i=0; i