From: Tom 'spot' Callaway Date: Wed, 21 Sep 2005 07:29:16 +0000 (-0700) Subject: [ATYFB]: Fix build with CONFIG_FB_ATY_GENERIC_LCD disabled. X-Git-Tag: v2.6.14-rc3~148^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1a3e64aa480101d11d8cac94ca57fd8bbe2536b7;p=platform%2Fkernel%2Flinux-exynos.git [ATYFB]: Fix build with CONFIG_FB_ATY_GENERIC_LCD disabled. Signed-off-by: Tom 'spot' Callaway Signed-off-by: David S. Miller --- diff --git a/drivers/video/aty/xlinit.c b/drivers/video/aty/xlinit.c index 92643af..0bea0d8 100644 --- a/drivers/video/aty/xlinit.c +++ b/drivers/video/aty/xlinit.c @@ -174,7 +174,7 @@ int atyfb_xl_init(struct fb_info *info) const struct xl_card_cfg_t * card = &card_cfg[xl_card]; struct atyfb_par *par = (struct atyfb_par *) info->par; union aty_pll pll; - int i, err; + int err; u32 temp; aty_st_8(CONFIG_STAT0, 0x85, par); @@ -252,9 +252,12 @@ int atyfb_xl_init(struct fb_info *info) aty_st_le32(0xEC, 0x00000000, par); aty_st_le32(0xFC, 0x00000000, par); +#if defined (CONFIG_FB_ATY_GENERIC_LCD) + int i; for (i=0; i