aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/fbdev/skeletonfb.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2022-07-11 17:41:11 +0200
committerHelge Deller <deller@gmx.de>2022-07-18 07:54:20 +0200
commit6a7d270e901965b0f8643db885cdc2e6e93b8621 (patch)
treede662bd513bee33fe9648db05371d8a29972680d /drivers/video/fbdev/skeletonfb.c
parentvideo: fbdev: cirrusfb: Make cirrusfb_zorro_unregister() static (diff)
downloadlinux-dev-6a7d270e901965b0f8643db885cdc2e6e93b8621.tar.xz
linux-dev-6a7d270e901965b0f8643db885cdc2e6e93b8621.zip
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: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'drivers/video/fbdev/skeletonfb.c')
-rw-r--r--drivers/video/fbdev/skeletonfb.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/video/fbdev/skeletonfb.c b/drivers/video/fbdev/skeletonfb.c
index d119b1d08007..8ab9a3fbd281 100644
--- a/drivers/video/fbdev/skeletonfb.c
+++ b/drivers/video/fbdev/skeletonfb.c
@@ -131,8 +131,6 @@ static struct fb_info info;
*/
static struct xxx_par __initdata current_par;
-int xxxfb_init(void);
-
/**
* xxxfb_open - Optional function. Called when the framebuffer is
* first accessed.
@@ -886,7 +884,7 @@ static struct pci_driver xxxfb_driver = {
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)
@@ -967,7 +965,7 @@ static struct platform_device *xxxfb_device;
* Only necessary if your driver takes special options,
* 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:') */
}