patch-2.3.10 linux/drivers/char/dz.c
Next file: linux/drivers/char/esp.c
Previous file: linux/drivers/char/dsp56k.c
Back to the patch index
Back to the overall index
- Lines: 35
- Date:
Mon Jul 5 20:35:18 1999
- Orig file:
v2.3.9/linux/drivers/char/dz.c
- Orig date:
Wed Jun 30 13:38:19 1999
diff -u --recursive --new-file v2.3.9/linux/drivers/char/dz.c linux/drivers/char/dz.c
@@ -16,6 +16,8 @@
* field from "current" - somewhere between 2.1.121 and 2.1.131
*/
+#define DEBUG_DZ 1
+
#ifdef MODULE
#include <linux/module.h>
#include <linux/version.h>
@@ -41,8 +43,10 @@
/* for definition of struct console */
#ifdef CONFIG_SERIAL_CONSOLE
#define CONSOLE_LINE (3)
-#include <linux/console.h>
#endif /* ifdef CONFIG_SERIAL_CONSOLE */
+#if defined(CONFIG_SERIAL_CONSOLE) || defined(DEBUG_DZ)
+#include <linux/console.h>
+#endif /* if defined(CONFIG_SERIAL_CONSOLE) || defined(DEBUG_DZ) */
#include <linux/tty.h>
#include <linux/tty_flip.h>
@@ -54,13 +58,8 @@
#include <asm/dec/kn01.h>
#include <asm/dec/kn02.h>
-#define DEBUG_DZ 1
#ifdef DEBUG_DZ
-#include <linux/tty.h>
-#include <linux/major.h>
#include <linux/ptrace.h>
-#include <linux/init.h>
-#include <linux/console.h>
#include <linux/fs.h>
#include <asm/bootinfo.h>
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)