Subject: [PATCH 2.6] make drivers/char/vt.c compile without CONFIG_VT_CONSOLE

From: Julien BLACHE <[email-masked]>
Date: Mon, 22 Dec 2003 11:53:40 +0100

Hi,

In drivers/char/vt.c, console_driver is defined inside an #ifdef
CONFIG_VT_CONSOLE, which makes it impossible to build a 2.6 kernel
without CONFIG_VT_CONSOLE.

I think this wasn't intended, so the attached patch moves the
declaration of console_driver above the #ifdef. There may be a more
appropriate place, so put it elsewhere if you feel like it :)

JB.

-- 
Julien BLACHE                                   <http://www.jblache.org> 
<[email-masked]>                                  GPG KeyID 0xF5D65169

Index: vt.c
===================================================================
RCS file: /home/cvs/linux/drivers/char/vt.c,v
retrieving revision 1.55
diff -u -r1.55 vt.c
--- vt.c	19 Oct 2003 00:50:09 -0000	1.55
+++ vt.c	22 Dec 2003 10:47:19 -0000
@@ -2086,6 +2086,8 @@
 	schedule_console_callback();
 }
 
+struct tty_driver *console_driver;
+
 #ifdef CONFIG_VT_CONSOLE
 
 /*
@@ -2184,8 +2186,6 @@
 quit:
 	clear_bit(0, &printing);
 }
-
-struct tty_driver *console_driver;
 
 static struct tty_driver *vt_console_device(struct console *c, int *index)
 {