[PATCH -next] fbdev: chipsfb: chips_init() can be static

DORMANTno replies

From: Yang Yingliang <hidden>
Date: 2021-05-13 04:57:02
Also in: lkml
Subsystem: framebuffer layer, the rest · Maintainers: Helge Deller, Linus Torvalds

chips_init() only used within this file. It should be static.

Signed-off-by: Yang Yingliang <redacted>
---
 drivers/video/fbdev/chipsfb.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/video/fbdev/chipsfb.c b/drivers/video/fbdev/chipsfb.c
index 998067b701fa..81198faf8159 100644
--- a/drivers/video/fbdev/chipsfb.c
+++ b/drivers/video/fbdev/chipsfb.c
@@ -66,11 +66,6 @@
 	inb(0x3da); read_ind(num, var, 0x3c0, 0x3c1); \
 } while (0)
 
-/*
- * Exported functions
- */
-int chips_init(void);
-
 static int chipsfb_pci_init(struct pci_dev *dp, const struct pci_device_id *);
 static int chipsfb_check_var(struct fb_var_screeninfo *var,
 			     struct fb_info *info);
@@ -498,7 +493,7 @@ static struct pci_driver chipsfb_driver = {
 #endif
 };
 
-int __init chips_init(void)
+static int __init chips_init(void)
 {
 	if (fb_get_options("chipsfb", NULL))
 		return -ENODEV;
-- 
2.25.1
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help