Skip to content

Commit

Permalink
fbdev/atyfb: Fix 2 defined-but-not-used warnings
Browse files Browse the repository at this point in the history
If CONFIG_FB_ATY_BACKLIGHT=y but CONFIG_PCI=n:

drivers/video/aty/atyfb_base.c:2272: warning: ‘aty_bl_exit’ defined but not used

If CONFIG_ATARI=y for a modular build:

drivers/video/aty/atyfb_base.c:2794: warning: ‘store_video_par’ defined but not
used

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Geert Uytterhoeven authored and Paul Mundt committed Jun 14, 2011
1 parent e6b8480 commit d64c132
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions drivers/video/aty/atyfb_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,6 @@ static int atyfb_sync(struct fb_info *info);

static int aty_init(struct fb_info *info);

#ifdef CONFIG_ATARI
static int store_video_par(char *videopar, unsigned char m64_num);
#endif

static void aty_get_crtc(const struct atyfb_par *par, struct crtc *crtc);

static void aty_set_crtc(const struct atyfb_par *par, const struct crtc *crtc);
Expand Down Expand Up @@ -2268,11 +2264,13 @@ static void aty_bl_init(struct atyfb_par *par)
return;
}

#ifdef CONFIG_PCI
static void aty_bl_exit(struct backlight_device *bd)
{
backlight_device_unregister(bd);
printk("aty: Backlight unloaded\n");
}
#endif /* CONFIG_PCI */

#endif /* CONFIG_FB_ATY_BACKLIGHT */

Expand Down Expand Up @@ -2789,7 +2787,7 @@ static int __devinit aty_init(struct fb_info *info)
return ret;
}

#ifdef CONFIG_ATARI
#if defined(CONFIG_ATARI) && !defined(MODULE)
static int __devinit store_video_par(char *video_str, unsigned char m64_num)
{
char *p;
Expand Down Expand Up @@ -2818,7 +2816,7 @@ static int __devinit store_video_par(char *video_str, unsigned char m64_num)
phys_vmembase[m64_num] = 0;
return -1;
}
#endif /* CONFIG_ATARI */
#endif /* CONFIG_ATARI && !MODULE */

/*
* Blank the display.
Expand Down

0 comments on commit d64c132

Please sign in to comment.