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

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
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -84,9 +84,6 @@ static const struct fb_fix_screeninfo mc68x328fb_fix __initconst = {
    /*
     *  Interface used by the world
     */
int mc68x328fb_init(void);
int mc68x328fb_setup(char *);

static int mc68x328fb_check_var(struct fb_var_screeninfo *var,
			 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)
#endif
}

int __init mc68x328fb_setup(char *options)
static int __init mc68x328fb_setup(char *options)
{
	if (!options || !*options)
		return 1;
@@ -414,7 +411,7 @@ int __init mc68x328fb_setup(char *options)
     *  Initialisation
     */

int __init mc68x328fb_init(void)
static int __init mc68x328fb_init(void)
{
#ifndef MODULE
	char *option = NULL;
+1 −1
Original line number Diff line number Diff line
@@ -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;
	int temp;
+1 −1
Original line number Diff line number Diff line
@@ -280,7 +280,7 @@ static struct platform_device dnfb_device = {
	.name	= "dnfb",
};

int __init dnfb_init(void)
static int __init dnfb_init(void)
{
	int ret;

+2 −2
Original line number Diff line number Diff line
@@ -293,7 +293,7 @@ static int fm2fb_probe(struct zorro_dev *z, const struct zorro_device_id *id)
	return 0;
}

int __init fm2fb_setup(char *options)
static int __init fm2fb_setup(char *options)
{
	char *this_opt;

@@ -309,7 +309,7 @@ int __init fm2fb_setup(char *options)
	return 0;
}

int __init fm2fb_init(void)
static int __init fm2fb_init(void)
{
	char *option = NULL;

+2 −2
Original line number Diff line number Diff line
@@ -375,7 +375,7 @@ static struct dio_driver hpfb_driver = {
    .remove    = hpfb_remove_one,
};

int __init hpfb_init(void)
static int __init hpfb_init(void)
{
	unsigned int sid;
	unsigned char i;
@@ -415,7 +415,7 @@ int __init hpfb_init(void)
	return 0;
}

void __exit hpfb_cleanup_module(void)
static void __exit hpfb_cleanup_module(void)
{
	dio_unregister_driver(&hpfb_driver);
}
Loading