[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20210513045917.622849-1-yangyingliang@huawei.com>
Date: Thu, 13 May 2021 12:59:17 +0800
From: Yang Yingliang <yangyingliang@...wei.com>
To: <linux-kernel@...r.kernel.org>, <linux-fbdev@...r.kernel.org>
CC: <b.zolnierkie@...sung.com>
Subject: [PATCH -next] fbdev: chipsfb: chips_init() can be static
chips_init() only used within this file. It should be static.
Signed-off-by: Yang Yingliang <yangyingliang@...wei.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
Powered by blists - more mailing lists