This patch fixes a warning generated when ati128fb is compiled without CONFIG_PMAC_BACKLIGHT. Patch is against latest linux-next. Signed-off-by: Daniele Venzano <venza@xxxxxxxxxxxx> --- drivers/video/aty/aty128fb.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/drivers/video/aty/aty128fb.c b/drivers/video/aty/aty128fb.c index db16112..1d5b55c 100644 --- a/drivers/video/aty/aty128fb.c +++ b/drivers/video/aty/aty128fb.c @@ -360,8 +360,10 @@ static int mtrr = 1; #ifdef CONFIG_PMAC_BACKLIGHT static int backlight __devinitdata = 1; #else +#if !defined(MODULE) || defined(CONFIG_FB_ATY128_BACKLIGHT) static int backlight __devinitdata = 0; #endif +#endif /* PLL constants */ struct aty128_constants { -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html