Commit 6a7d270e authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Helge Deller

video: fbdev: Make *fb_setup() and *fb_init() static

The various *fb_setup() and *fb_init() functions are only used locally,
so they should be static.  Most of them do not need forward
declarations, so remove these where appropriate.
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarHelge Deller <deller@gmx.de>
parent f45566fb
...@@ -84,9 +84,6 @@ static const struct fb_fix_screeninfo mc68x328fb_fix __initconst = { ...@@ -84,9 +84,6 @@ static const struct fb_fix_screeninfo mc68x328fb_fix __initconst = {
/* /*
* Interface used by the world * Interface used by the world
*/ */
int mc68x328fb_init(void);
int mc68x328fb_setup(char *);
static int mc68x328fb_check_var(struct fb_var_screeninfo *var, static int mc68x328fb_check_var(struct fb_var_screeninfo *var,
struct fb_info *info); struct fb_info *info);
static int mc68x328fb_set_par(struct fb_info *info); static int mc68x328fb_set_par(struct fb_info *info);
...@@ -403,7 +400,7 @@ static int mc68x328fb_mmap(struct fb_info *info, struct vm_area_struct *vma) ...@@ -403,7 +400,7 @@ static int mc68x328fb_mmap(struct fb_info *info, struct vm_area_struct *vma)
#endif #endif
} }
int __init mc68x328fb_setup(char *options) static int __init mc68x328fb_setup(char *options)
{ {
if (!options || !*options) if (!options || !*options)
return 1; return 1;
...@@ -414,7 +411,7 @@ int __init mc68x328fb_setup(char *options) ...@@ -414,7 +411,7 @@ int __init mc68x328fb_setup(char *options)
* Initialisation * Initialisation
*/ */
int __init mc68x328fb_init(void) static int __init mc68x328fb_init(void)
{ {
#ifndef MODULE #ifndef MODULE
char *option = NULL; char *option = NULL;
......
...@@ -2981,7 +2981,7 @@ static void __init atafb_setup_user(char *spec) ...@@ -2981,7 +2981,7 @@ static void __init atafb_setup_user(char *spec)
} }
} }
int __init atafb_setup(char *options) static int __init atafb_setup(char *options)
{ {
char *this_opt; char *this_opt;
int temp; int temp;
......
...@@ -280,7 +280,7 @@ static struct platform_device dnfb_device = { ...@@ -280,7 +280,7 @@ static struct platform_device dnfb_device = {
.name = "dnfb", .name = "dnfb",
}; };
int __init dnfb_init(void) static int __init dnfb_init(void)
{ {
int ret; int ret;
......
...@@ -293,7 +293,7 @@ static int fm2fb_probe(struct zorro_dev *z, const struct zorro_device_id *id) ...@@ -293,7 +293,7 @@ static int fm2fb_probe(struct zorro_dev *z, const struct zorro_device_id *id)
return 0; return 0;
} }
int __init fm2fb_setup(char *options) static int __init fm2fb_setup(char *options)
{ {
char *this_opt; char *this_opt;
...@@ -309,7 +309,7 @@ int __init fm2fb_setup(char *options) ...@@ -309,7 +309,7 @@ int __init fm2fb_setup(char *options)
return 0; return 0;
} }
int __init fm2fb_init(void) static int __init fm2fb_init(void)
{ {
char *option = NULL; char *option = NULL;
......
...@@ -375,7 +375,7 @@ static struct dio_driver hpfb_driver = { ...@@ -375,7 +375,7 @@ static struct dio_driver hpfb_driver = {
.remove = hpfb_remove_one, .remove = hpfb_remove_one,
}; };
int __init hpfb_init(void) static int __init hpfb_init(void)
{ {
unsigned int sid; unsigned int sid;
unsigned char i; unsigned char i;
...@@ -415,7 +415,7 @@ int __init hpfb_init(void) ...@@ -415,7 +415,7 @@ int __init hpfb_init(void)
return 0; return 0;
} }
void __exit hpfb_cleanup_module(void) static void __exit hpfb_cleanup_module(void)
{ {
dio_unregister_driver(&hpfb_driver); dio_unregister_driver(&hpfb_driver);
} }
......
...@@ -133,7 +133,7 @@ static struct platform_device q40fb_device = { ...@@ -133,7 +133,7 @@ static struct platform_device q40fb_device = {
.name = "q40fb", .name = "q40fb",
}; };
int __init q40fb_init(void) static int __init q40fb_init(void)
{ {
int ret = 0; int ret = 0;
......
...@@ -131,8 +131,6 @@ static struct fb_info info; ...@@ -131,8 +131,6 @@ static struct fb_info info;
*/ */
static struct xxx_par __initdata current_par; static struct xxx_par __initdata current_par;
int xxxfb_init(void);
/** /**
* xxxfb_open - Optional function. Called when the framebuffer is * xxxfb_open - Optional function. Called when the framebuffer is
* first accessed. * first accessed.
...@@ -886,7 +884,7 @@ static struct pci_driver xxxfb_driver = { ...@@ -886,7 +884,7 @@ static struct pci_driver xxxfb_driver = {
MODULE_DEVICE_TABLE(pci, xxxfb_id_table); MODULE_DEVICE_TABLE(pci, xxxfb_id_table);
int __init xxxfb_init(void) static int __init xxxfb_init(void)
{ {
/* /*
* For kernel boot options (in 'video=xxxfb:<options>' format) * For kernel boot options (in 'video=xxxfb:<options>' format)
...@@ -967,7 +965,7 @@ static struct platform_device *xxxfb_device; ...@@ -967,7 +965,7 @@ static struct platform_device *xxxfb_device;
* Only necessary if your driver takes special options, * Only necessary if your driver takes special options,
* otherwise we fall back on the generic fb_setup(). * otherwise we fall back on the generic fb_setup().
*/ */
int __init xxxfb_setup(char *options) static int __init xxxfb_setup(char *options)
{ {
/* Parse user specified options (`video=xxxfb:') */ /* Parse user specified options (`video=xxxfb:') */
} }
......
...@@ -90,11 +90,7 @@ struct fb_info_valkyrie { ...@@ -90,11 +90,7 @@ struct fb_info_valkyrie {
u32 pseudo_palette[16]; u32 pseudo_palette[16];
}; };
/* static int valkyriefb_setup(char*);
* Exported functions
*/
int valkyriefb_init(void);
int valkyriefb_setup(char*);
static int valkyriefb_check_var(struct fb_var_screeninfo *var, static int valkyriefb_check_var(struct fb_var_screeninfo *var,
struct fb_info *info); struct fb_info *info);
...@@ -302,7 +298,7 @@ static void __init valkyrie_choose_mode(struct fb_info_valkyrie *p) ...@@ -302,7 +298,7 @@ static void __init valkyrie_choose_mode(struct fb_info_valkyrie *p)
default_vmode, default_cmode); default_vmode, default_cmode);
} }
int __init valkyriefb_init(void) static int __init valkyriefb_init(void)
{ {
struct fb_info_valkyrie *p; struct fb_info_valkyrie *p;
unsigned long frame_buffer_phys, cmap_regs_phys; unsigned long frame_buffer_phys, cmap_regs_phys;
...@@ -549,7 +545,7 @@ static int __init valkyrie_init_info(struct fb_info *info, ...@@ -549,7 +545,7 @@ static int __init valkyrie_init_info(struct fb_info *info,
/* /*
* Parse user specified options (`video=valkyriefb:') * Parse user specified options (`video=valkyriefb:')
*/ */
int __init valkyriefb_setup(char *options) static int __init valkyriefb_setup(char *options)
{ {
char *this_opt; char *this_opt;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment