linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] fbdev: chipsfb: chips_init() can be static
@ 2021-05-13  4:59 Yang Yingliang
  0 siblings, 0 replies; only message in thread
From: Yang Yingliang @ 2021-05-13  4:59 UTC (permalink / raw)
  To: linux-kernel, linux-fbdev; +Cc: b.zolnierkie

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

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
---
 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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-13  4:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-13  4:59 [PATCH -next] fbdev: chipsfb: chips_init() can be static Yang Yingliang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).