[2.6 patch] video/stifb.c: make 2 functions static

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <adaplas@...>
Cc: <linux-kernel@...>, Andrew Morton <akpm@...>
Date: Tuesday, June 17, 2008 - 6:30 pm

This patch makes the following needlessly global functions static:
- stifb_init_fb()
- stifb_init()

Signed-off-by: Adrian Bunk <bunk@kernel.org>

---

 drivers/video/stifb.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

952f8b344428d8995c34a677a9672656e0a306d6 diff --git a/drivers/video/stifb.c b/drivers/video/stifb.c
index 598d35e..1664814 100644
--- a/drivers/video/stifb.c
+++ b/drivers/video/stifb.c
@@ -1078,8 +1078,7 @@ static struct fb_ops stifb_ops = {
  *  Initialization
  */
 
-int __init
-stifb_init_fb(struct sti_struct *sti, int bpp_pref)
+static int __init stifb_init_fb(struct sti_struct *sti, int bpp_pref)
 {
 	struct fb_fix_screeninfo *fix;
 	struct fb_var_screeninfo *var;
@@ -1315,8 +1314,7 @@ static int stifb_disabled __initdata;
 int __init
 stifb_setup(char *options);
 
-int __init
-stifb_init(void)
+static int __init stifb_init(void)
 {
 	struct sti_struct *sti;
 	struct sti_struct *def_sti;

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[2.6 patch] video/stifb.c: make 2 functions static, Adrian Bunk, (Tue Jun 17, 6:30 pm)