mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
fb: amifb: fix build warnings when not builtin
Fix build warning when built as a loadable module. amifb_setup() and amifb_setup_mcap() are only needed when the driver is builtin. This matches how the functions are called (using #ifndef MODULE). ../drivers/video/fbdev/amifb.c:2344:19: warning: 'amifb_setup' defined but not used [-Wunused-function] static int __init amifb_setup(char *options) ../drivers/video/fbdev/amifb.c:2307:20: warning: 'amifb_setup_mcap' defined but not used [-Wunused-function] static void __init amifb_setup_mcap(char *spec) Signed-off-by: Randy Dunlap <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
This commit is contained in:
parent
3f2ce54284
commit
195197f408
1 changed files with 2 additions and 2 deletions
|
|
@ -2303,7 +2303,7 @@ static void ami_build_copper(struct fb_info *info)
|
|||
ami_rebuild_copper(info->par);
|
||||
}
|
||||
|
||||
|
||||
#ifndef MODULE
|
||||
static void __init amifb_setup_mcap(char *spec)
|
||||
{
|
||||
char *p;
|
||||
|
|
@ -2368,7 +2368,7 @@ static int __init amifb_setup(char *options)
|
|||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
static int amifb_check_var(struct fb_var_screeninfo *var,
|
||||
struct fb_info *info)
|
||||
|
|
|
|||
Loading…
Reference in a new issue