]> rtime.felk.cvut.cz Git - linux-imx.git/commitdiff
[PATCH] vt: proper prototypes for some console functions
authorAdrian Bunk <bunk@stusta.de>
Tue, 3 Oct 2006 08:15:06 +0000 (01:15 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 3 Oct 2006 15:04:12 +0000 (08:04 -0700)
This patch adds proper prototypes to header files for three console init
functions used on drivers/char/vt.c

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Antonino Daplas <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/vt.c
include/linux/console.h
include/linux/consolemap.h

index a398b6b6aa655d18f2897ef7b7dbaf0ee4cbd7cc..8e4413f6fbaf6145352ffb5e7c9af0530240cc79 100644 (file)
@@ -139,14 +139,6 @@ const struct consw *conswitchp;
 extern void vcs_make_sysfs(struct tty_struct *tty);
 extern void vcs_remove_sysfs(struct tty_struct *tty);
 
-extern void console_map_init(void);
-#ifdef CONFIG_PROM_CONSOLE
-extern void prom_con_init(void);
-#endif
-#ifdef CONFIG_MDA_CONSOLE
-extern int mda_console_init(void);
-#endif
-
 struct vc vc_cons [MAX_NR_CONSOLES];
 
 #ifndef VT_SINGLE_DRIVER
index 76a1807726eb0fb24b668995eb3bd5388c3e1013..7d0420274de00d26b86d6d986631860bb158d5d3 100644 (file)
@@ -129,6 +129,9 @@ static inline void suspend_console(void) {}
 static inline void resume_console(void) {}
 #endif /* CONFIG_DISABLE_CONSOLE_SUSPEND */
 
+int mda_console_init(void);
+void prom_con_init(void);
+
 /* Some debug stub to catch some of the obvious races in the VT code */
 #if 1
 #define WARN_CONSOLE_UNLOCKED()        WARN_ON(!is_console_locked() && !oops_in_progress)
index 65842efc1b70fba98fdeaec9b3db88491dfe161f..82c9a1f11020b2ecfd1f3947d42ac6218b50a841 100644 (file)
@@ -13,3 +13,4 @@ struct vc_data;
 extern unsigned char inverse_translate(struct vc_data *conp, int glyph);
 extern unsigned short *set_translate(int m, struct vc_data *vc);
 extern int conv_uni_to_pc(struct vc_data *conp, long ucs);
+void console_map_init(void);